1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

lavf/concat: reject empty scripts.

Fix trac ticket #2566.
This commit is contained in:
Nicolas George 2013-05-15 16:53:35 +02:00
parent c45b823bf8
commit ca2f6b6932

View File

@ -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)