diff options
author | Hendrik Leppkes <h.leppkes@gmail.com> | 2015-09-12 13:05:01 +0200 |
---|---|---|
committer | Hendrik Leppkes <h.leppkes@gmail.com> | 2015-09-12 13:05:01 +0200 |
commit | 09c15eac3e8c394531edf4aa8f4fd880e77d07e6 (patch) | |
tree | eb18769c3c75cc36c78730669b9c58b55bdc9c40 /libavformat/oggparsevorbis.c | |
parent | eadf6cb2c4e80304d9e18672bf5f5359a676deb2 (diff) | |
parent | 41ed749fe987e60b0485fa721ad869590651324d (diff) | |
download | ffmpeg-09c15eac3e8c394531edf4aa8f4fd880e77d07e6.tar.gz |
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/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 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 |