[FFmpeg-cvslog] avcodec/ituh263dec: Remove redundant store

Andreas Rheinhardt git at videolan.org
Sat Jun 21 23:20:11 EEST 2025


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Sun May 25 20:56:43 2025 +0200| [d95041dffe611dc0d519df95168c205c368a9791] | committer: Andreas Rheinhardt

avcodec/ituh263dec: Remove redundant store

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d95041dffe611dc0d519df95168c205c368a9791
---

 libavcodec/ituh263dec.c | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/libavcodec/ituh263dec.c b/libavcodec/ituh263dec.c
index 5e1d15e557..896556edfb 100644
--- a/libavcodec/ituh263dec.c
+++ b/libavcodec/ituh263dec.c
@@ -434,15 +434,16 @@ end:
 
 static void h263_decode_dquant(MpegEncContext *s){
     static const int8_t quant_tab[4] = { -1, -2, 1, 2 };
+    int qscale;
 
     if(s->modified_quant){
         if(get_bits1(&s->gb))
-            s->qscale= ff_modified_quant_tab[get_bits1(&s->gb)][ s->qscale ];
+            qscale = ff_modified_quant_tab[get_bits1(&s->gb)][s->qscale];
         else
-            s->qscale= get_bits(&s->gb, 5);
+            qscale = get_bits(&s->gb, 5);
     }else
-        s->qscale += quant_tab[get_bits(&s->gb, 2)];
-    ff_set_qscale(s, s->qscale);
+        qscale = s->qscale + quant_tab[get_bits(&s->gb, 2)];
+    ff_set_qscale(s, qscale);
 }
 
 static void h263_pred_acdc(MpegEncContext * s, int16_t *block, int n)



More information about the ffmpeg-cvslog mailing list