summaryrefslogtreecommitdiff
path: root/libavcodec/mpegvideo_enc.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-10-02 21:32:19 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-10-06 15:00:21 +0200
commit40e4ddf61943404582b5506b7b7ab487c4025864 (patch)
tree67a7179d3ec603e84752ab9c8ef7dd5d061eb0a7 /libavcodec/mpegvideo_enc.c
parent406c7fceeb9b0cfb82e6a8fd7e12c3e7aeb4bdeb (diff)
downloadffmpeg-40e4ddf61943404582b5506b7b7ab487c4025864.tar.gz
avcodec/mpegvideo_enc: Move SpeedHQ check to speedhqenc.c
Also set this only once and not for every frame. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/mpegvideo_enc.c')
-rw-r--r--libavcodec/mpegvideo_enc.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/libavcodec/mpegvideo_enc.c b/libavcodec/mpegvideo_enc.c
index 06c3ff4cbe..f16fc1aaed 100644
--- a/libavcodec/mpegvideo_enc.c
+++ b/libavcodec/mpegvideo_enc.c
@@ -3753,9 +3753,6 @@ static int encode_picture(MpegEncContext *s, int picture_number)
s->chroma_intra_matrix, s->intra_quant_bias, 8, 8, 1);
s->qscale = 8;
}
- } else if (s->out_format == FMT_SPEEDHQ) {
- s->y_dc_scale_table=
- s->c_dc_scale_table= ff_mpeg2_dc_scale_table[3];
}
//FIXME var duplication