diff options
author | Anton Khirnov <anton@khirnov.net> | 2024-03-07 15:21:30 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2024-03-12 09:47:14 +0100 |
commit | ce178be8b0caf3255ceeeff14a8c3619dac5cc8a (patch) | |
tree | 8b424de47b8ecb86d83dd348e6bc513f2a396205 /fftools/ffmpeg_filter.c | |
parent | 53a952a7313f2c78d93a4f6805abe570fe35f96b (diff) | |
download | ffmpeg-ce178be8b0caf3255ceeeff14a8c3619dac5cc8a.tar.gz |
fftools/ffmpeg_filter: do not assume av_buffersrc_get_nb_failed_requests()>0
Apparently it can happen that avfilter_graph_request_oldest() returns
EAGAIN, yet av_buffersrc_get_nb_failed_requests() returns 0 for every
input.
Works around #10795, though the root issue is most likely in the
scale2ref filter.
Diffstat (limited to 'fftools/ffmpeg_filter.c')
-rw-r--r-- | fftools/ffmpeg_filter.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fftools/ffmpeg_filter.c b/fftools/ffmpeg_filter.c index 960393b943..65574809bf 100644 --- a/fftools/ffmpeg_filter.c +++ b/fftools/ffmpeg_filter.c @@ -1889,7 +1889,7 @@ static void send_command(FilterGraph *fg, AVFilterGraph *graph, static int choose_input(const FilterGraph *fg, const FilterGraphThread *fgt) { - int nb_requests, nb_requests_max = 0; + int nb_requests, nb_requests_max = -1; int best_input = -1; for (int i = 0; i < fg->nb_inputs; i++) { |