History

avcodec/mpegvideo_enc: Move H.263 specific check to ituh263enc.c

Andreas Rheinhardt committed 1 year ago

Commit 1ec1f1e1 parent c3ab7362 files · +3 −3Browse files

Showing the changes to libavcodec (2 of 2 files). Show all

Unified · Split

2 files
  1. libavcodec/ituh263enc.c +3 −0
  2. libavcodec/mpegvideo_enc.c +0 −3
libavcodec/ituh263enc.c+3−0
@@ -834,6 +834,9 @@ av_cold void ff_h263_encode_init(MpegEncContext *s) · 833 unmodified lines
834834 }
835835 s->ac_esc_length= 7+1+6+8;
836836
837+ if (s->modified_quant)
838+ s->chroma_qscale_table = ff_h263_chroma_qscale_table;
839+
837840 // use fcodes >1 only for MPEG-4 & H.263 & H.263+ FIXME
838841 switch(s->codec_id){
839842 case AV_CODEC_ID_MPEG4:
libavcodec/mpegvideo_enc.c+0−3
@@ -994,9 +994,6 @@ av_cold int ff_mpv_encode_init(AVCodecContext *avctx) · 993 unmodified lines
994994 s->dct_unquantize_inter = s->dct_unquantize_mpeg1_inter;
995995 }
996996
997− if ((CONFIG_H263P_ENCODER || CONFIG_RV20_ENCODER) && s->modified_quant)
998− s->chroma_qscale_table = ff_h263_chroma_qscale_table;
999−
1000997 if (s->slice_context_count > 1) {
1001998 s->rtp_mode = 1;
1002999

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t