summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Schleef <ds@schleef.org>2010-03-14 13:11:53 -0700
committerDavid Schleef <ds@schleef.org>2010-03-14 13:15:13 -0700
commit460c649b5f465d5a0c601d6bfbe928aaeb0f4da2 (patch)
tree311cf64a90f96cc4426bf2e835d090f790c3929d
parent944d6b1786f64b84947b7b71b858653c6acc0fd7 (diff)
oggdemux: Don't drop zero-sized packets
Zero-sized packets have relevence to Theora.
-rw-r--r--ext/ogg/gstoggdemux.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/ext/ogg/gstoggdemux.c b/ext/ogg/gstoggdemux.c
index 27e17d5c5..96315c04f 100644
--- a/ext/ogg/gstoggdemux.c
+++ b/ext/ogg/gstoggdemux.c
@@ -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),