[FFmpeg-cvslog] swscale/tests/swscale: Fix incorrect return code check

Michael Niedermayer git at videolan.org
Tue Jul 14 23:06:18 EEST 2020


ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Sat Jul 11 23:35:00 2020 +0200| [ec27c1827c1ff6ef8b543966206d8e6a9507532b] | committer: Michael Niedermayer

swscale/tests/swscale: Fix incorrect return code check

Regression since: 3adffab073bc59af39dddd035168ac72bc9ffde3

Reviewed-by: Martin Storsjö <martin at martin.st>
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

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

 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 693f439bf5..58870fdb78 100644
--- a/libswscale/tests/swscale.c
+++ b/libswscale/tests/swscale.c
@@ -423,7 +423,7 @@ bad_option:
         for (x = 0; x < W * 4; x++)
             rgb_data[ x + y * 4 * W] = av_lfg_get(&rand);
     res = sws_scale(sws, rgb_src, rgb_stride, 0, H / 12, (uint8_t * const *) src, stride);
-    if (res < 0 || res != (H / 12))
+    if (res < 0 || res != H)
         goto error;
     sws_freeContext(sws);
     av_free(rgb_data);



More information about the ffmpeg-cvslog mailing list