aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2022-05-24 01:45:44 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2024-07-02 21:57:22 +0200
commit63ecce9ba87867b21a7cdcd677bb268c0d807db1 (patch)
tree1dc4cc4dbdfca3040faf2f54822d992c0cfa1eaf
parent97ae47f9e928f6163dfbfbe30415c253ae8780bb (diff)
downloadffmpeg-63ecce9ba87867b21a7cdcd677bb268c0d807db1.tar.gz
avcodec/vc1_loopfilter: Factor duplicate code in vc1_b_h_intfi_loop_filter()
Fixes: CID1435168 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r--libavcodec/vc1_loopfilter.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/libavcodec/vc1_loopfilter.c b/libavcodec/vc1_loopfilter.c
index 67abb4b01c..e788d1890e 100644
--- a/libavcodec/vc1_loopfilter.c
+++ b/libavcodec/vc1_loopfilter.c
@@ -1128,10 +1128,7 @@ void vc1_b_h_intfi_loop_filter(VC1Context *v, uint8_t *dest, const uint32_t *cbp
dst = dest + (block_num & 2) * 4 * s->linesize + (block_num & 1) * 8;
if (!(flags & RIGHT_EDGE) || !(block_num & 5)) {
- if (block_num > 3)
- v->vc1dsp.vc1_h_loop_filter8(dst + 8, linesize, pq);
- else
- v->vc1dsp.vc1_h_loop_filter8(dst + 8, linesize, pq);
+ v->vc1dsp.vc1_h_loop_filter8(dst + 8, linesize, pq);
}
tt = ttblk[0] >> (block_num * 4) & 0xf;