[FFmpeg-cvslog] tests/swscale: allow nonzero positive return codes from sws_scale_frame()

Niklas Haas git at videolan.org
Wed Dec 18 18:31:06 EET 2024


ffmpeg | branch: master | Niklas Haas <git at haasn.dev> | Tue Dec 17 13:59:54 2024 +0100| [b38f6f9990cb2445a718f290cbef772c99c54232] | committer: Niklas Haas

tests/swscale: allow nonzero positive return codes from sws_scale_frame()

See previous commit.

Signed-off-by: Niklas Haas <git at haasn.dev>
Sponsored-by: Sovereign Tech Fund

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b38f6f9990cb2445a718f290cbef772c99c54232
---

 libswscale/tests/swscale.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libswscale/tests/swscale.c b/libswscale/tests/swscale.c
index 3ed00f90a8..2e83197694 100644
--- a/libswscale/tests/swscale.c
+++ b/libswscale/tests/swscale.c
@@ -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:



More information about the ffmpeg-cvslog mailing list