1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-21 10:55:51 +02:00

fftools/ffmpeg_sched: simplify failure path in sch_dec_send()

This commit is contained in:
Anton Khirnov 2024-02-16 16:07:58 +01:00
parent a2fc86378a
commit a00765fcbe

View File

@ -2035,13 +2035,11 @@ int sch_dec_send(Scheduler *sch, unsigned dec_idx, AVFrame *frame)
ret = 0;
continue;
}
goto finish;
return ret;
}
}
finish:
return ret < 0 ? ret :
(nb_done == dec->nb_dst) ? AVERROR_EOF : 0;
return (nb_done == dec->nb_dst) ? AVERROR_EOF : 0;
}
static int dec_done(Scheduler *sch, unsigned dec_idx)