]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/aaxdec.c
avfilter/avfilter: Remove compatibility code for old filter options
[ffmpeg] / libavformat / aaxdec.c
index 7d10e805ca3a36a67f309f0577c8b06a1eb3d8a7..c6d2d1c8d1151ff56b75b1bd2a63b85de0235208 100644 (file)
@@ -264,6 +264,11 @@ static int aax_read_header(AVFormatContext *s)
         }
     }
 
+    if (!a->segments[0].end) {
+        ret = AVERROR_INVALIDDATA;
+        goto fail;
+    }
+
     st = avformat_new_stream(s, NULL);
     if (!st) {
         ret = AVERROR(ENOMEM);