diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2015-08-17 03:08:10 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2015-08-17 03:08:10 +0200 |
commit | 3afca32561d94f2774adcd82a6a45d78d45f42f3 (patch) | |
tree | a2b30b5fd74630821556157d49a2e6f3ff1d0a9c | |
parent | 7f769ae41e0dca0f538ad6bdad5f9471fd5ee87f (diff) | |
download | ffmpeg-3afca32561d94f2774adcd82a6a45d78d45f42f3.tar.gz |
swscale/swscale-test: Fix slice height in random reference data creation.
Found-by: Pedro Arthur <bygrandao@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r-- | libswscale/swscale-test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libswscale/swscale-test.c b/libswscale/swscale-test.c index 661ff5b7b2..b79bb2373a 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); |