[FFmpeg-cvslog] swscale/swscale-test: Fix slice height in random reference data creation.

Michael Niedermayer git at videolan.org
Sun Jan 31 00:43:12 CET 2016


ffmpeg | branch: release/2.7 | Michael Niedermayer <michael at niedermayer.cc> | Mon Aug 17 03:08:10 2015 +0200| [4b17205c775608247e6726ecad018de0b6a8bc20] | committer: Michael Niedermayer

swscale/swscale-test: Fix slice height in random reference data creation.

Found-by: Pedro Arthur <bygrandao at gmail.com>
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

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

 libswscale/swscale-test.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libswscale/swscale-test.c b/libswscale/swscale-test.c
index 661ff5b..b79bb23 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);
 



More information about the ffmpeg-cvslog mailing list