oggdemux: Don't drop zero-sized packets

Zero-sized packets have relevence to Theora.
This commit is contained in:
David Schleef 2010-03-14 13:11:53 -07:00
parent 944d6b1786
commit 460c649b5f

View file

@ -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),