Browse Source

ogg: Do not try to use the parser if it is not present

Bug-Id: 886
CC: libav-stable@libav.org
tags/n3.0
Luca Barbato 10 years ago
parent
commit
41ed749fe9
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      libavformat/oggparsevorbis.c

+ 3
- 0
libavformat/oggparsevorbis.c View File

@@ -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


Loading…
Cancel
Save