[FFmpeg-devel] [PATCH 9/9] avcodec/vp3: Replace check by assert
Michael Niedermayer
michael at niedermayer.cc
Sun May 19 22:44:42 EEST 2024
On Sat, May 18, 2024 at 06:33:12PM +1000, Peter Ross wrote:
> On Sat, May 18, 2024 at 05:57:43AM +0200, Michael Niedermayer wrote:
> > Fixes: CID1452425 Logically dead code
> >
> > Sponsored-by: Sovereign Tech Fund
> > Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> > ---
> > libavcodec/vp3.c | 3 +--
> > 1 file changed, 1 insertion(+), 2 deletions(-)
> >
> > diff --git a/libavcodec/vp3.c b/libavcodec/vp3.c
> > index 09527607767..d03a1c9dbc1 100644
> > --- a/libavcodec/vp3.c
> > +++ b/libavcodec/vp3.c
> > @@ -2001,8 +2001,7 @@ static int vp4_mc_loop_filter(Vp3DecodeContext *s, int plane, int motion_x, int
> > x_offset = (-(x + 2) & 7) + 2;
> > y_offset = (-(y + 2) & 7) + 2;
> >
> > - if (x_offset > 8 + x_subpel && y_offset > 8 + y_subpel)
> > - return 0;
> > + av_assert1(!(x_offset > 8 + x_subpel && y_offset > 8 + y_subpel));
> >
>
> ok
will apply
thx
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Dictatorship naturally arises out of democracy, and the most aggravated
form of tyranny and slavery out of the most extreme liberty. -- Plato
-------------- 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/20240519/9f68e7ab/attachment.sig>
More information about the ffmpeg-devel
mailing list