ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinha...@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.rheinha...@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,

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to