[FFmpeg-cvslog] ogg: Do not try to use the parser if it is not present
Luca Barbato
git at videolan.org
Sat Sep 12 13:06:43 CEST 2015
ffmpeg | branch: master | Luca Barbato <lu_zero at gentoo.org> | Thu Sep 10 14:11:43 2015 +0200| [41ed749fe987e60b0485fa721ad869590651324d] | committer: Luca Barbato
ogg: Do not try to use the parser if it is not present
Bug-Id: 886
CC: libav-stable at libav.org
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=41ed749fe987e60b0485fa721ad869590651324d
---
libavformat/oggparsevorbis.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/libavformat/oggparsevorbis.c b/libavformat/oggparsevorbis.c
index aac0f0e..519a0a7 100644
--- 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
More information about the ffmpeg-cvslog
mailing list