1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-04 22:03:09 +02:00

avcodec/mpeg4videoenc: Use smaller scope for variable

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt
2025-05-18 21:22:04 +02:00
parent 7267e4dab8
commit 6af1bcb180

View File

@ -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 */