[FFmpeg-cvslog] avcodec/rv34: Don't update block_index unnecessarily
Andreas Rheinhardt
git at videolan.org
Tue Mar 4 14:35:23 EET 2025
ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Sat Jun 8 03:11:48 2024 +0200| [592d75dbebb7f7f620c0c70974f4067dd0a389c2] | committer: Andreas Rheinhardt
avcodec/rv34: Don't update block_index unnecessarily
It is unused by RV30 and RV40.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=592d75dbebb7f7f620c0c70974f4067dd0a389c2
---
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);
More information about the ffmpeg-cvslog
mailing list