diff options
author | Shiyou Yin <yinshiyou-hf@loongson.cn> | 2018-12-17 18:03:30 +0800 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2018-12-18 11:59:51 +0100 |
commit | 76952aa46163f92c8bb5180973e33ca36d583308 (patch) | |
tree | 7be7de731a5c9048cd32b290b6a9b5bdb77dbb94 /libavcodec/mips/h264pred_init_mips.c | |
parent | 978c935f2f659edf028b9219c7397efdcf4a1260 (diff) | |
download | ffmpeg-76952aa46163f92c8bb5180973e33ca36d583308.tar.gz |
avcodec/mips: [loongson] enable MSA optimization for loongson platform.
Set initialization order of MSA after MMI to make it work on loongson platform(msa is supported by loongson2k、3a4000 etc.).
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/mips/h264pred_init_mips.c')
-rw-r--r-- | libavcodec/mips/h264pred_init_mips.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/mips/h264pred_init_mips.c b/libavcodec/mips/h264pred_init_mips.c index c33d8f7cdb..63637b8732 100644 --- a/libavcodec/mips/h264pred_init_mips.c +++ b/libavcodec/mips/h264pred_init_mips.c @@ -146,10 +146,10 @@ av_cold void ff_h264_pred_init_mips(H264PredContext *h, int codec_id, int bit_depth, const int chroma_format_idc) { -#if HAVE_MSA - h264_pred_init_msa(h, codec_id, bit_depth, chroma_format_idc); -#endif // #if HAVE_MSA #if HAVE_MMI h264_pred_init_mmi(h, codec_id, bit_depth, chroma_format_idc); #endif /* HAVE_MMI */ +#if HAVE_MSA + h264_pred_init_msa(h, codec_id, bit_depth, chroma_format_idc); +#endif // #if HAVE_MSA } |