ffmpeg: check ost->finished in check_output_constraints()
No testcase but it seems logic to stop when finished is set Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
7d91fb305e
commit
4ff77d4451
3
ffmpeg.c
3
ffmpeg.c
@ -1407,6 +1407,9 @@ static int check_output_constraints(InputStream *ist, OutputStream *ost)
|
|||||||
if (ost->source_index != ist_index)
|
if (ost->source_index != ist_index)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
if (ost->finished)
|
||||||
|
return 0;
|
||||||
|
|
||||||
if (of->start_time != AV_NOPTS_VALUE && ist->pts < of->start_time)
|
if (of->start_time != AV_NOPTS_VALUE && ist->pts < of->start_time)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user