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:
f816f94
)
oggstream: fix crash with 0 byte ogg packets
author
Jonathan Liu
<net147@gmail.com>
Sun, 28 Oct 2012 10:07:16 +0000
(21:07 +1100)
committer
Tim-Philipp Müller
<tim@centricular.net>
Mon, 29 Oct 2012 12:04:38 +0000
(12:04 +0000)
https://bugzilla.gnome.org/show_bug.cgi?id=687030
ext/ogg/gstoggstream.c
patch
|
blob
|
history
diff --git
a/ext/ogg/gstoggstream.c
b/ext/ogg/gstoggstream.c
index
c79f088
..
fe28f2e
100644
(file)
--- a/
ext/ogg/gstoggstream.c
+++ b/
ext/ogg/gstoggstream.c
@@
-790,7
+790,7
@@
setup_vorbis_mapper (GstOggStream * pad, ogg_packet * packet)
static gboolean
is_header_vorbis (GstOggStream * pad, ogg_packet * packet)
{
- if (packet->bytes
> 0 &&
(packet->packet[0] & 0x01) == 0)
+ if (packet->bytes
== 0 ||
(packet->packet[0] & 0x01) == 0)
return FALSE;
if (packet->packet[0] == 5) {