avcodec: [loongson] fix bug of mss2-wmv failed in fate test.
authorShiyou Yin <yinshiyou-hf@loongson.cn>
Mon, 3 Sep 2018 03:31:46 +0000 (11:31 +0800)
committerMichael Niedermayer <michael@niedermayer.cc>
Tue, 4 Sep 2018 00:30:51 +0000 (02:30 +0200)
commit61eeb40a62d0fa7e5dd9f816c5a756a4e1199f03
tree5a93a00bb01d1df1a84cc1c836966a18ee20dcc6
parent23fe072e43c2650c2de0adcac3cdbd17ca335259
avcodec: [loongson] fix bug of mss2-wmv failed in fate test.

Failed case: mss2-wmv
In following functions, pmullh was used to multiply two 16-bit data, this will cause data overflow.
1. ff_vc1_inv_trans_8x8_dc_mmi
2. ff_vc1_inv_trans_8x8_mmi
3. ff_vc1_inv_trans_8x4_mmi
4. ff_vc1_inv_trans_4x8_mmi
5. ff_vc1_inv_trans_4x4_mmi

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/mips/vc1dsp_mmi.c