From c4444def5a2fcce439f2c819ca5fe39b1331c926 Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Mon, 3 Mar 2025 20:09:58 +0100 Subject: [PATCH 17/40] avcodec/flvenc: Remove redundant setting of dc_scale_tables h263_aic is always zero for FLV and ff_mpeg1_dc_scale_table is already the default dc_scale table for both y and c. h263_aic is also always zero for the FLV decoder. Signed-off-by: Andreas Rheinhardt --- libavcodec/flvenc.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/libavcodec/flvenc.c b/libavcodec/flvenc.c index cbe3b7f056..192c2a929f 100644 --- a/libavcodec/flvenc.c +++ b/libavcodec/flvenc.c @@ -20,9 +20,7 @@ #include "codec_internal.h" #include "flvenc.h" -#include "h263data.h" #include "mpegvideo.h" -#include "mpegvideodata.h" #include "mpegvideoenc.h" void ff_flv_encode_picture_header(MpegEncContext *s) @@ -63,14 +61,6 @@ void ff_flv_encode_picture_header(MpegEncContext *s) put_bits(&s->pb, 1, 1); /* DeblockingFlag: on */ put_bits(&s->pb, 5, s->qscale); /* Quantizer */ put_bits(&s->pb, 1, 0); /* ExtraInformation */ - - if (s->h263_aic) { - s->y_dc_scale_table = - s->c_dc_scale_table = ff_aic_dc_scale_table; - } else { - s->y_dc_scale_table = - s->c_dc_scale_table = ff_mpeg1_dc_scale_table; - } } void ff_flv2_encode_ac_esc(PutBitContext *pb, int slevel, int level, -- 2.45.2