From ca2f6b6932144c3ec7828c4b828af80b9e36e38a Mon Sep 17 00:00:00 2001 From: Nicolas George Date: Wed, 15 May 2013 16:53:35 +0200 Subject: [PATCH] lavf/concat: reject empty scripts. Fix trac ticket #2566. --- libavformat/concatdec.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavformat/concatdec.c b/libavformat/concatdec.c index 78362e2c65..79fb394d45 100644 --- a/libavformat/concatdec.c +++ b/libavformat/concatdec.c @@ -216,6 +216,8 @@ static int concat_read_header(AVFormatContext *avf) } if (ret < 0) FAIL(ret); + if (!cat->nb_files) + FAIL(AVERROR_INVALIDDATA); for (i = 0; i < cat->nb_files; i++) { if (cat->files[i].start_time == AV_NOPTS_VALUE)