From: Andreas Rheinhardt <[email protected]>
Signed-off-by: Andreas Rheinhardt <[email protected]>
---
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)
--
ffmpeg-codebot
_______________________________________________
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".