]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/concatdec.c
avfilter/vf_transpose: use the name 's' for the pointer to the private context
[ffmpeg] / libavformat / concatdec.c
index 969b00155102e447f6aa33a2753bbc309838bca1..88b6dbe6a4472a9b2a83469ca682e0223da602f8 100644 (file)
@@ -394,6 +394,11 @@ static int concat_read_header(AVFormatContext *avf)
                 av_log(avf, AV_LOG_ERROR, "Line %d: packet metadata required\n", line);
                 FAIL(AVERROR_INVALIDDATA);
             }
+            if (!file) {
+                av_log(avf, AV_LOG_ERROR, "Line %d: %s without file\n",
+                       line, keyword);
+                FAIL(AVERROR_INVALIDDATA);
+            }
             if ((ret = av_dict_parse_string(&file->metadata, metadata, "=", "", 0)) < 0) {
                 av_log(avf, AV_LOG_ERROR, "Line %d: failed to parse metadata string\n", line);
                 av_freep(&metadata);