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:
fe17585
)
oggstream: Fix crashes with 0-byte vorbis packets
author
Jonathan Liu
<net147@gmail.com>
Wed, 3 Aug 2011 08:18:29 +0000
(10:18 +0200)
committer
Sebastian Dröge
<sebastian.droege@collabora.co.uk>
Wed, 3 Aug 2011 08:18:29 +0000
(10:18 +0200)
Fixes bug #655574.
ext/ogg/gstoggstream.c
patch
|
blob
|
history
diff --git
a/ext/ogg/gstoggstream.c
b/ext/ogg/gstoggstream.c
index
e843f48
..
77f39d4
100644
(file)
--- a/
ext/ogg/gstoggstream.c
+++ b/
ext/ogg/gstoggstream.c
@@
-792,7
+792,7
@@
packet_duration_vorbis (GstOggStream * pad, ogg_packet * packet)
int size;
int duration;
- if (packet->packet[0] & 1)
+ if (packet->
bytes == 0 || packet->
packet[0] & 1)
return 0;
mode = (packet->packet[0] >> 1) & ((1 << pad->vorbis_log2_num_modes) - 1);