[FFmpeg-cvslog] avcodec/mdec: Don't update cache unnecessarily
Andreas Rheinhardt
git at videolan.org
Sun Mar 16 05:31:06 EET 2025
ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Fri Mar 7 03:59:36 2025 +0100| [2e5f01e06464f7b34bab38328c85fd7af1f89728] | committer: Andreas Rheinhardt
avcodec/mdec: Don't update cache unnecessarily
It won't be used anyway.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2e5f01e06464f7b34bab38328c85fd7af1f89728
---
libavcodec/mdec.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libavcodec/mdec.c b/libavcodec/mdec.c
index 9789a94396..c8865d7c63 100644
--- a/libavcodec/mdec.c
+++ b/libavcodec/mdec.c
@@ -102,7 +102,8 @@ static inline int mdec_decode_block_intra(MDECContext *a, int16_t *block, int n)
/* escape */
run = SHOW_UBITS(re, &a->gb, 6) + 1;
SKIP_BITS(re, &a->gb, 6);
- level = SHOW_SBITS(re, &a->gb, 10); SKIP_BITS(re, &a->gb, 10);
+ level = SHOW_SBITS(re, &a->gb, 10);
+ LAST_SKIP_BITS(re, &a->gb, 10);
i += run;
if (i > 63) {
av_log(a->avctx, AV_LOG_ERROR,
More information about the ffmpeg-cvslog
mailing list