ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinha...@outlook.com> | Sat Mar 1 21:05:59 2025 +0100| [1ec1f1e236ba2cbb7538c692cd2a4cb7cf906dc7] | committer: Andreas Rheinhardt
avcodec/mpegvideo_enc: Move H.263 specific check to ituh263enc.c Signed-off-by: Andreas Rheinhardt <andreas.rheinha...@outlook.com> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1ec1f1e236ba2cbb7538c692cd2a4cb7cf906dc7 --- libavcodec/ituh263enc.c | 3 +++ libavcodec/mpegvideo_enc.c | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libavcodec/ituh263enc.c b/libavcodec/ituh263enc.c index 2d750439d1..5beb857a6e 100644 --- a/libavcodec/ituh263enc.c +++ b/libavcodec/ituh263enc.c @@ -834,6 +834,9 @@ av_cold void ff_h263_encode_init(MpegEncContext *s) } s->ac_esc_length= 7+1+6+8; + if (s->modified_quant) + s->chroma_qscale_table = ff_h263_chroma_qscale_table; + // use fcodes >1 only for MPEG-4 & H.263 & H.263+ FIXME switch(s->codec_id){ case AV_CODEC_ID_MPEG4: diff --git a/libavcodec/mpegvideo_enc.c b/libavcodec/mpegvideo_enc.c index cbfea534d9..656d312d28 100644 --- a/libavcodec/mpegvideo_enc.c +++ b/libavcodec/mpegvideo_enc.c @@ -994,9 +994,6 @@ av_cold int ff_mpv_encode_init(AVCodecContext *avctx) s->dct_unquantize_inter = s->dct_unquantize_mpeg1_inter; } - if ((CONFIG_H263P_ENCODER || CONFIG_RV20_ENCODER) && s->modified_quant) - s->chroma_qscale_table = ff_h263_chroma_qscale_table; - if (s->slice_context_count > 1) { s->rtp_mode = 1; _______________________________________________ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog To unsubscribe, visit link above, or email ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".