summaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
authorHendrik Leppkes <h.leppkes@gmail.com>2015-09-12 13:05:01 +0200
committerHendrik Leppkes <h.leppkes@gmail.com>2015-09-12 13:05:01 +0200
commit09c15eac3e8c394531edf4aa8f4fd880e77d07e6 (patch)
treeeb18769c3c75cc36c78730669b9c58b55bdc9c40 /libavformat
parenteadf6cb2c4e80304d9e18672bf5f5359a676deb2 (diff)
parent41ed749fe987e60b0485fa721ad869590651324d (diff)
Merge commit '41ed749fe987e60b0485fa721ad869590651324d'
* commit '41ed749fe987e60b0485fa721ad869590651324d': ogg: Do not try to use the parser if it is not present Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/oggparsevorbis.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/oggparsevorbis.c b/libavformat/oggparsevorbis.c
index 59e7b75522..b96be98974 100644
--- a/libavformat/oggparsevorbis.c
+++ b/libavformat/oggparsevorbis.c
@@ -406,6 +406,9 @@ static int vorbis_packet(AVFormatContext *s, int idx)
struct oggvorbis_private *priv = os->private;
int duration, flags = 0;
+ 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