]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/oggparsevorbis.c
ffplay: dynamically allocate filename buffer
[ffmpeg] / libavformat / oggparsevorbis.c
index 59e7b75522120aae17b140d2fbace409664f8b88..b96be9897473fe79d66d23909b70d1a6dbe7b94c 100644 (file)
@@ -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