[FFmpeg-devel] [PATCH 1/2] swscale/tests/swscale: Fix incorrect return code check

Michael Niedermayer michael at niedermayer.cc
Tue Jul 14 22:54:35 EEST 2020


On Tue, Jul 14, 2020 at 10:42:24AM +0300, Martin Storsjö wrote:
> On Sun, 12 Jul 2020, Michael Niedermayer wrote:
> 
> > Regression since: 3adffab073bc59af39dddd035168ac72bc9ffde3
> > 
> > Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> > ---
> > libswscale/tests/swscale.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> > 
> > diff --git a/libswscale/tests/swscale.c b/libswscale/tests/swscale.c
> > index 693f439bf5..58870fdb78 100644
> > --- a/libswscale/tests/swscale.c
> > +++ b/libswscale/tests/swscale.c
> > @@ -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;
> 
> LGTM, this seems to fix the test on both aarch64 and x86.

will apply

thx

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Whats the most studid thing your enemy could do ? Blow himself up
Whats the most studid thing you could do ? Give up your rights and
freedom because your enemy blew himself up.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20200714/c12c2927/attachment.sig>


More information about the ffmpeg-devel mailing list