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
1 changed files with 2 additions and 0 deletions

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)