mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-20 08:41:07 +00:00
oggdemux: fix for I-frame-only theora
This commit is contained in:
parent
fb07615baa
commit
4378851102
1 changed files with 3 additions and 2 deletions
|
@ -296,9 +296,10 @@ setup_theora_mapper (GstOggStream * pad, ogg_packet * packet)
|
|||
pad->n_header_packets = 3;
|
||||
pad->frame_size = 1;
|
||||
|
||||
if (pad->granuleshift == 0 || pad->granulerate_n == 0
|
||||
|| pad->granulerate_d == 0)
|
||||
if (pad->granulerate_n == 0 || pad->granulerate_d == 0) {
|
||||
GST_WARNING ("frame rate %d/%d", pad->granulerate_n, pad->granulerate_d);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
pad->caps = gst_caps_new_simple ("video/x-theora", NULL);
|
||||
|
||||
|
|
Loading…
Reference in a new issue