mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
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.
This commit is contained in:
parent
53a952a731
commit
ce178be8b0
@ -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++) {
|
||||
|
Loading…
Reference in New Issue
Block a user