avcodec/vc1_loopfilter: Factor duplicate code in vc1_b_h_intfi_loop_filter()

Fixes: CID1435168

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 63ecce9ba8)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
release/6.1
Michael Niedermayer 3 years ago
parent 3e02fd22a3
commit 74bacfc00b
No known key found for this signature in database
GPG Key ID: B18E8928B3948D64
  1. 3
      libavcodec/vc1_loopfilter.c

@ -1125,9 +1125,6 @@ static av_always_inline void vc1_b_h_intfi_loop_filter(VC1Context *v, uint8_t *d
dst = dest + (block_num & 2) * 4 * s->linesize + (block_num & 1) * 8; dst = dest + (block_num & 2) * 4 * s->linesize + (block_num & 1) * 8;
if (!(flags & RIGHT_EDGE) || !(block_num & 5)) { 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);
} }

Loading…
Cancel
Save