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

Michael Niedermayer git at videolan.org
Mon Feb 1 20:41:36 CET 2016


ffmpeg | branch: release/2.5 | Michael Niedermayer <michael at niedermayer.cc> | Mon Aug 17 03:08:10 2015 +0200| [d1fc87529f381657470669afe5f01f3b694eebda] | 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=d1fc87529f381657470669afe5f01f3b694eebda
---

 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