[FFmpeg-devel] [PATCH] lavf/concat: reject empty scripts.
Nicolas George
nicolas.george at normalesup.org
Wed May 15 16:59:27 CEST 2013
Fix trac ticket #2566.
Signed-off-by: Nicolas George <nicolas.george at normalesup.org>
---
libavformat/concatdec.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavformat/concatdec.c b/libavformat/concatdec.c
index 78362e2..79fb394 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)
--
1.7.10.4
More information about the ffmpeg-devel
mailing list