aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2015-08-17 03:08:10 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2016-01-31 00:24:12 +0100
commit0f091f808af7d536dc3edd99e196801a871f49d6 (patch)
tree0da023831dcbaba6daedb150f80405f8cb783093
parent1d8a6a46a30393608fa618472aeb48bc5e469db2 (diff)
downloadffmpeg-0f091f808af7d536dc3edd99e196801a871f49d6.tar.gz
swscale/swscale-test: Fix slice height in random reference data creation.
Found-by: Pedro Arthur <bygrandao@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r--libswscale/swscale-test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libswscale/swscale-test.c b/libswscale/swscale-test.c
index 661ff5b7b2..b79bb2373a 100644
--- a/libswscale/swscale-test.c
+++ b/libswscale/swscale-test.c
@@ -399,7 +399,7 @@ bad_option:
for (y = 0; y < H; y++)
for (x = 0; x < W * 4; x++)
rgb_data[ x + y * 4 * W] = av_lfg_get(&rand);
- sws_scale(sws, rgb_src, rgb_stride, 0, H, src, stride);
+ sws_scale(sws, rgb_src, rgb_stride, 0, H / 12, src, stride);
sws_freeContext(sws);
av_free(rgb_data);