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,
} }
} }
if (pad->map.is_ogm_text) {
/* check for invalid buffer sizes */ /* check for invalid buffer sizes */
if (G_UNLIKELY (offset + trim >= packet->bytes)) if (G_UNLIKELY (offset + trim >= packet->bytes))
goto empty_packet; 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),