mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-06 07:10:21 +00:00
tests/swscale: allow nonzero positive return codes from sws_scale_frame()
See previous commit. Signed-off-by: Niklas Haas <git@haasn.dev> Sponsored-by: Sovereign Tech Fund
This commit is contained in:
parent
e05a1bb879
commit
b38f6f9990
@ -135,7 +135,7 @@ static int scale_legacy(AVFrame *dst, const AVFrame *src, struct mode mode,
|
||||
if ((ret = sws_init_context(sws_legacy, NULL, NULL)) < 0)
|
||||
goto error;
|
||||
|
||||
for (int i = 0; !ret && i < opts.iters; i++)
|
||||
for (int i = 0; ret >= 0 && i < opts.iters; i++)
|
||||
ret = sws_scale_frame(sws_legacy, dst, src);
|
||||
|
||||
error:
|
||||
|
Loading…
Reference in New Issue
Block a user