summaryrefslogtreecommitdiffstats
path: root/libswscale
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2015-08-17 03:08:10 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2015-08-17 03:08:10 +0200
commit3afca32561d94f2774adcd82a6a45d78d45f42f3 (patch)
treea2b30b5fd74630821556157d49a2e6f3ff1d0a9c /libswscale
parent7f769ae41e0dca0f538ad6bdad5f9471fd5ee87f (diff)
downloadffmpeg-streaming-3afca32561d94f2774adcd82a6a45d78d45f42f3.zip
ffmpeg-streaming-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>
Diffstat (limited to 'libswscale')
-rw-r--r--libswscale/swscale-test.c2
1 files changed, 1 insertions, 1 deletions
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);
OpenPOWER on IntegriCloud