swscale/swscale-test: Fix slice height in random reference data creation.
authorMichael Niedermayer <michael@niedermayer.cc>
Mon, 17 Aug 2015 01:08:10 +0000 (03:08 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 17 Aug 2015 01:08:10 +0000 (03:08 +0200)
Found-by: Pedro Arthur <bygrandao@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libswscale/swscale-test.c

index 661ff5b..b79bb23 100644 (file)
@@ -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);