mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 20:51:13 +00:00
oggdemux: Don't drop zero-sized packets
Zero-sized packets have relevence to Theora.
This commit is contained in:
parent
944d6b1786
commit
460c649b5f
1 changed files with 5 additions and 3 deletions
|
@ -609,9 +609,11 @@ gst_ogg_demux_chain_peer (GstOggPad * pad, ogg_packet * packet,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* check for invalid buffer sizes */
|
if (pad->map.is_ogm_text) {
|
||||||
if (G_UNLIKELY (offset + trim >= packet->bytes))
|
/* check for invalid buffer sizes */
|
||||||
goto empty_packet;
|
if (G_UNLIKELY (offset + trim >= packet->bytes))
|
||||||
|
goto empty_packet;
|
||||||
|
}
|
||||||
|
|
||||||
ret =
|
ret =
|
||||||
gst_pad_alloc_buffer_and_set_caps (GST_PAD_CAST (pad),
|
gst_pad_alloc_buffer_and_set_caps (GST_PAD_CAST (pad),
|
||||||
|
|
Loading…
Reference in a new issue