mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-28 18:32:22 +00:00
fftools/ffmpeg_filter: do not end filtering when a graph input EOFs
There may be other inputs or sources in the filtergraph. Propagate the EOF to the scheduler and continue filtering. Fixes #10803
This commit is contained in:
parent
00013341df
commit
1ea2e757f7
@ -2871,6 +2871,12 @@ static void *filter_thread(void *arg)
|
||||
ret = send_eof(&fgt, ifilter, fgt.frame->pts, fgt.frame->time_base);
|
||||
}
|
||||
av_frame_unref(fgt.frame);
|
||||
if (ret == AVERROR_EOF) {
|
||||
av_log(fg, AV_LOG_VERBOSE, "Input %u no longer accepts new data\n",
|
||||
input_idx);
|
||||
sch_filter_receive_finish(fgp->sch, fgp->sch_idx, input_idx);
|
||||
continue;
|
||||
}
|
||||
if (ret < 0)
|
||||
goto finish;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user