mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-25 03:01:03 +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 (G_UNLIKELY (offset + trim >= packet->bytes))
|
||||
goto empty_packet;
|
||||
if (pad->map.is_ogm_text) {
|
||||
/* check for invalid buffer sizes */
|
||||
if (G_UNLIKELY (offset + trim >= packet->bytes))
|
||||
goto empty_packet;
|
||||
}
|
||||
|
||||
ret =
|
||||
gst_pad_alloc_buffer_and_set_caps (GST_PAD_CAST (pad),
|
||||
|
|
Loading…
Reference in a new issue