Commit 460c649b authored by David Schleef's avatar David Schleef
Browse files

oggdemux: Don't drop zero-sized packets

Zero-sized packets have relevence to Theora.
parent 944d6b17
......@@ -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),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment