projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
944d6b1
)
oggdemux: Don't drop zero-sized packets
author
David Schleef
<ds@schleef.org>
Sun, 14 Mar 2010 20:11:53 +0000
(13:11 -0700)
committer
David Schleef
<ds@schleef.org>
Sun, 14 Mar 2010 20:15:13 +0000
(13:15 -0700)
Zero-sized packets have relevence to Theora.
ext/ogg/gstoggdemux.c
patch
|
blob
|
history
diff --git
a/ext/ogg/gstoggdemux.c
b/ext/ogg/gstoggdemux.c
index
27e17d5
..
96315c0
100644
(file)
--- 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),