Merge remote-tracking branch 'cigaes/master'
* cigaes/master: lavf/concat: reject empty scripts. Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
42af97dbc0
@ -216,6 +216,8 @@ static int concat_read_header(AVFormatContext *avf)
|
|||||||
}
|
}
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
FAIL(ret);
|
FAIL(ret);
|
||||||
|
if (!cat->nb_files)
|
||||||
|
FAIL(AVERROR_INVALIDDATA);
|
||||||
|
|
||||||
for (i = 0; i < cat->nb_files; i++) {
|
for (i = 0; i < cat->nb_files; i++) {
|
||||||
if (cat->files[i].start_time == AV_NOPTS_VALUE)
|
if (cat->files[i].start_time == AV_NOPTS_VALUE)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user