Showing the changes to libavcodec (2 of 2 files). Show all
Unified · Split
| @@ -834,6 +834,9 @@ av_cold void ff_h263_encode_init(MpegEncContext *s) · 833 unmodified lines | ||
| 834 | 834 | } |
| 835 | 835 | s->ac_esc_length= 7+1+6+8; |
| 836 | 836 | |
| 837 | + if (s->modified_quant) | |
| 838 | + s->chroma_qscale_table = ff_h263_chroma_qscale_table; | |
| 839 | + | |
| 837 | 840 | // use fcodes >1 only for MPEG-4 & H.263 & H.263+ FIXME |
| 838 | 841 | switch(s->codec_id){ |
| 839 | 842 | case AV_CODEC_ID_MPEG4: |
| @@ -994,9 +994,6 @@ av_cold int ff_mpv_encode_init(AVCodecContext *avctx) · 993 unmodified lines | ||
| 994 | 994 | s->dct_unquantize_inter = s->dct_unquantize_mpeg1_inter; |
| 995 | 995 | } |
| 996 | 996 | |
| 997 | − if ((CONFIG_H263P_ENCODER || CONFIG_RV20_ENCODER) && s->modified_quant) | |
| 998 | − s->chroma_qscale_table = ff_h263_chroma_qscale_table; | |
| 999 | − | |
| 1000 | 997 | if (s->slice_context_count > 1) { |
| 1001 | 998 | s->rtp_mode = 1; |
| 1002 | 999 | |