diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2015-09-10 15:11:43 +0300 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2015-09-10 15:47:33 +0300 |
commit | 41ed749fe987e60b0485fa721ad869590651324d (patch) | |
tree | d4566f7af55ee9fc5d17acf7e44f3f6f752e405b /libavformat/oggparsevorbis.c | |
parent | 7b02cb29d9d60cdd5ef321043d11d02023e7dc8f (diff) |
ogg: Do not try to use the parser if it is not present
Bug-Id: 886
CC: libav-stable@libav.org
Diffstat (limited to 'libavformat/oggparsevorbis.c')
-rw-r--r-- | libavformat/oggparsevorbis.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/oggparsevorbis.c b/libavformat/oggparsevorbis.c index aac0f0e980..519a0a7371 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 |