From 5298bbf898d5379ccfe7b9112473f788cf529834 Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Sat, 8 Jun 2024 03:11:48 +0200 Subject: [PATCH 17/30] avcodec/rv34: Don't update block_index unnecessarily It is unused by RV30 and RV40. Signed-off-by: Andreas Rheinhardt --- libavcodec/rv34.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libavcodec/rv34.c b/libavcodec/rv34.c index d94285431e..d8d307f969 100644 --- a/libavcodec/rv34.c +++ b/libavcodec/rv34.c @@ -1463,7 +1463,9 @@ static int rv34_decode_slice(RV34DecContext *r, int end, const uint8_t* buf, int ff_init_block_index(s); while(!check_slice_end(r, s)) { - ff_update_block_index(s, 8, 0, 1); + s->dest[0] += 16; + s->dest[1] += 8; + s->dest[2] += 8; if(r->si.type) res = rv34_decode_inter_macroblock(r, r->intra_types + s->mb_x * 4 + 4); -- 2.45.2