From a79cac74eb11517142b514b66b8cf812570dee44 Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Sun, 18 May 2025 21:22:04 +0200 Subject: [PATCH 09/19] avcodec/mpeg4videoenc: Use smaller scope for variable Signed-off-by: Andreas Rheinhardt --- libavcodec/mpeg4videoenc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libavcodec/mpeg4videoenc.c b/libavcodec/mpeg4videoenc.c index c0b1c3512c..1cfd64128d 100644 --- a/libavcodec/mpeg4videoenc.c +++ b/libavcodec/mpeg4videoenc.c @@ -238,11 +238,10 @@ static inline int decide_ac_pred(MPVEncContext *const s, int16_t block[6][64], */ void ff_clean_mpeg4_qscales(MPVEncContext *const s) { - int8_t *const qscale_table = s->c.cur_pic.qscale_table; - ff_clean_h263_qscales(s); if (s->c.pict_type == AV_PICTURE_TYPE_B) { + int8_t *const qscale_table = s->c.cur_pic.qscale_table; int odd = 0; /* ok, come on, this isn't funny anymore, there's more code for * handling this MPEG-4 mess than for the actual adaptive quantization */ -- 2.45.2