OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7b02cb2
)
ogg: Do not try to use the parser if it is not present
author
Luca Barbato
<lu_zero@gentoo.org>
Thu, 10 Sep 2015 12:11:43 +0000
(14:11 +0200)
committer
Luca Barbato
<lu_zero@gentoo.org>
Thu, 10 Sep 2015 12:47:33 +0000
(14:47 +0200)
Bug-Id: 886
CC: libav-stable@libav.org
libavformat/oggparsevorbis.c
patch
|
blob
|
history
diff --git
a/libavformat/oggparsevorbis.c
b/libavformat/oggparsevorbis.c
index
aac0f0e
..
519a0a7
100644
(file)
--- a/
libavformat/oggparsevorbis.c
+++ b/
libavformat/oggparsevorbis.c
@@
-364,6
+364,9
@@
static int vorbis_packet(AVFormatContext *s, int idx)
struct oggvorbis_private *priv = os->private;
int duration;
+ if (!priv->vp)
+ return AVERROR_INVALIDDATA;
+
/* first packet handling
* here we parse the duration of each packet in the first page and compare
* the total duration to the page granule to find the encoder delay and