Message ID | 20240124104622.24343-2-anton@khirnov.net |
---|---|
State | Accepted |
Commit | 1ea2e757f7cba714eefd27efb2f9285078bba4a3 |
Headers | show |
Series | [FFmpeg-devel,1/3] fftools/ffmpeg_sched: add filter API to signal EOF on input | expand |
Context | Check | Description |
---|---|---|
yinshiyou/make_loongarch64 | success | Make finished |
yinshiyou/make_fate_loongarch64 | success | Make fate finished |
andriy/make_x86 | success | Make finished |
andriy/make_fate_x86 | success | Make fate finished |
diff --git a/fftools/ffmpeg_filter.c b/fftools/ffmpeg_filter.c index 82ee4fae7d..ab64b4610a 100644 --- a/fftools/ffmpeg_filter.c +++ b/fftools/ffmpeg_filter.c @@ -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;