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

Michael Niedermayer git at videolan.org
Mon Feb 1 02:35:14 CET 2016


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

 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