aboutsummaryrefslogtreecommitdiffstats
path: root/libswscale
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2020-07-11 23:35:00 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2020-07-14 22:05:02 +0200
commitec27c1827c1ff6ef8b543966206d8e6a9507532b (patch)
tree988a813f3ebca59a7d90c6db6c96facefd5841c2 /libswscale
parentba3e771a42c29ee02c34e7769cfc1b2dbc5c760a (diff)
downloadffmpeg-ec27c1827c1ff6ef8b543966206d8e6a9507532b.tar.gz
swscale/tests/swscale: Fix incorrect return code check
Regression since: 3adffab073bc59af39dddd035168ac72bc9ffde3 Reviewed-by: Martin Storsjö <martin@martin.st> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libswscale')
-rw-r--r--libswscale/tests/swscale.c2
1 files changed, 1 insertions, 1 deletions
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);