]> git.sesse.net Git - ffmpeg/commitdiff
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 661ff5b7b23630a57c218bd6666a0f4a6a0cf31d..b79bb2373acc54869e5d507fb0f81f40af28fa6f 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);