diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2015-09-18 00:47:06 +0300 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2015-09-18 03:39:17 +0300 |
commit | 2d35757814ec0beae8be26f3af641cdbd91f2200 (patch) | |
tree | cc09acacea586a499ef1720d4ce2bc2ac6664068 /libavcodec/mips | |
parent | 90d239a441f2f3f554b4a53c527bfe76119c36ed (diff) |
avcodec/mpegvideo: Change mpeg2 unquant to work with higher precission qscale
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/mips')
-rw-r--r-- | libavcodec/mips/mpegvideo_init_mips.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libavcodec/mips/mpegvideo_init_mips.c b/libavcodec/mips/mpegvideo_init_mips.c index e83aec5365..1918da5f46 100644 --- a/libavcodec/mips/mpegvideo_init_mips.c +++ b/libavcodec/mips/mpegvideo_init_mips.c @@ -26,7 +26,8 @@ static av_cold void dct_unquantize_init_msa(MpegEncContext *s) { s->dct_unquantize_h263_intra = ff_dct_unquantize_h263_intra_msa; s->dct_unquantize_h263_inter = ff_dct_unquantize_h263_inter_msa; - s->dct_unquantize_mpeg2_inter = ff_dct_unquantize_mpeg2_inter_msa; + if (!s->q_scale_type) + s->dct_unquantize_mpeg2_inter = ff_dct_unquantize_mpeg2_inter_msa; } #endif // #if HAVE_MSA @@ -39,7 +40,8 @@ static av_cold void dct_unquantize_init_mmi(MpegEncContext *s) s->dct_unquantize_mpeg1_inter = ff_dct_unquantize_mpeg1_inter_mmi; if (!(s->avctx->flags & AV_CODEC_FLAG_BITEXACT)) - s->dct_unquantize_mpeg2_intra = ff_dct_unquantize_mpeg2_intra_mmi; + if (!s->q_scale_type) + s->dct_unquantize_mpeg2_intra = ff_dct_unquantize_mpeg2_intra_mmi; s->denoise_dct= ff_denoise_dct_mmi; } |