mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
swscale/tests/swscale: Fix incorrect return code check
Regression since: 3adffab073
Reviewed-by: Martin Storsjö <martin@martin.st>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
ba3e771a42
commit
ec27c1827c
@ -423,7 +423,7 @@ bad_option:
|
||||
for (x = 0; x < W * 4; x++)
|
||||
rgb_data[ x + y * 4 * W] = av_lfg_get(&rand);
|
||||
res = sws_scale(sws, rgb_src, rgb_stride, 0, H / 12, (uint8_t * const *) src, stride);
|
||||
if (res < 0 || res != (H / 12))
|
||||
if (res < 0 || res != H)
|
||||
goto error;
|
||||
sws_freeContext(sws);
|
||||
av_free(rgb_data);
|
||||
|
Loading…
Reference in New Issue
Block a user