mirror of https://git.ffmpeg.org/ffmpeg.git
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>
This commit is contained in:
parent
1d8a6a46a3
commit
0f091f808a
|
@ -399,7 +399,7 @@ bad_option:
|
||||||
for (y = 0; y < H; y++)
|
for (y = 0; y < H; y++)
|
||||||
for (x = 0; x < W * 4; x++)
|
for (x = 0; x < W * 4; x++)
|
||||||
rgb_data[ x + y * 4 * W] = av_lfg_get(&rand);
|
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);
|
sws_freeContext(sws);
|
||||||
av_free(rgb_data);
|
av_free(rgb_data);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue