[FFmpeg-cvslog] swscale/swscale-test: Fix slice height in random reference data creation.
Michael Niedermayer
git at videolan.org
Mon Feb 1 03:06:43 CET 2016
ffmpeg | branch: release/2.6 | Michael Niedermayer <michael at niedermayer.cc> | Mon Aug 17 03:08:10 2015 +0200| [0f091f808af7d536dc3edd99e196801a871f49d6] | 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=0f091f808af7d536dc3edd99e196801a871f49d6
---
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