avcodec/mips: [loongson] fix bug of svq3-watermark failed in fate test.
authorShiyou Yin <yinshiyou-hf@loongson.cn>
Thu, 13 Sep 2018 03:04:05 +0000 (11:04 +0800)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 13 Sep 2018 23:52:29 +0000 (01:52 +0200)
commita55adf24b91af70566cf0967df336b700e0aa025
tree9bb9ce1f2d7b8c39e9d0c6d4f0653cc6f0df565b
parenta259501e5a6ed07d76ce5d615123148b9b68d9f8
avcodec/mips: [loongson] fix bug of svq3-watermark failed in fate test.

Failed case: svq3-watermark
When minimum loop count of following functions are greater than parameter h passed to them, svq3-watermark failed.
1. ff_put_pixels4_8_mmi
2. ff_avg_pixels4_8_mmi
3. ff_put_pixels4_l2_8_mmi
4. ff_avg_pixels4_l2_8_mmi

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