diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2024-05-18 03:16:08 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2024-05-19 22:12:54 +0200 |
commit | 1b991e77b9b19392214f6a788541bea5662de337 (patch) | |
tree | 2e2a2393fa001bc3f2e8c028b06cd7f0f30fe430 | |
parent | 63feed1519c5e38d6ce146f265c48592236e3abc (diff) | |
download | ffmpeg-1b991e77b9b19392214f6a788541bea5662de337.tar.gz |
avcodec/vp3: Replace check by assert
Fixes: CID1452425 Logically dead code
Sponsored-by: Sovereign Tech Fund
Reviewed-by: Peter Ross <pross@xvid.org>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r-- | libavcodec/vp3.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/vp3.c b/libavcodec/vp3.c index 0952760776..d03a1c9dbc 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)); s->vdsp.emulated_edge_mc(loop, motion_source - stride - 1, loop_stride, stride, |