mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +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->n_header_packets = 3;
|
||||||
pad->frame_size = 1;
|
pad->frame_size = 1;
|
||||||
|
|
||||||
if (pad->granuleshift == 0 || pad->granulerate_n == 0
|
if (pad->granulerate_n == 0 || pad->granulerate_d == 0) {
|
||||||
|| pad->granulerate_d == 0)
|
GST_WARNING ("frame rate %d/%d", pad->granulerate_n, pad->granulerate_d);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
pad->caps = gst_caps_new_simple ("video/x-theora", NULL);
|
pad->caps = gst_caps_new_simple ("video/x-theora", NULL);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue