diff mbox

[FFmpeg-devel] avcodec/mips: [loongson] fix mpeg4 decoding error on loongson platform.

Message ID 1558664803-10060-1-git-send-email-yinshiyou-hf@loongson.cn
State Accepted
Commit 6b67daa326f647e3b405ce0fb0f88f0266d40ab3
Headers show

Commit Message

殷时友 May 24, 2019, 2:26 a.m. UTC
In function ff_dct_unquantize_mpeg2_intra_mmi,
addr0 shoudn't be changed before storage operation.
---
 libavcodec/mips/mpegvideo_mmi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Michael Niedermayer May 26, 2019, 5:27 p.m. UTC | #1
On Fri, May 24, 2019 at 10:26:43AM +0800, Shiyou Yin wrote:
> In function ff_dct_unquantize_mpeg2_intra_mmi,
> addr0 shoudn't be changed before storage operation.
> ---
>  libavcodec/mips/mpegvideo_mmi.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

will apply

thx

[...]
diff mbox

Patch

diff --git a/libavcodec/mips/mpegvideo_mmi.c b/libavcodec/mips/mpegvideo_mmi.c
index 18058e4..e4aba08 100644
--- a/libavcodec/mips/mpegvideo_mmi.c
+++ b/libavcodec/mips/mpegvideo_mmi.c
@@ -410,9 +410,9 @@  void ff_dct_unquantize_mpeg2_intra_mmi(MpegEncContext *s, int16_t *block,
         "psubh      %[ftmp2],   %[ftmp2],       %[ftmp8]                \n\t"
         "pandn      %[ftmp5],   %[ftmp5],       %[ftmp1]                \n\t"
         "pandn      %[ftmp6],   %[ftmp6],       %[ftmp2]                \n\t"
-        PTR_ADDIU  "%[addr0],   %[addr0],       0x10                    \n\t"
         MMI_SDXC1(%[ftmp5], %[addr0], %[block], 0x00)
         MMI_SDXC1(%[ftmp6], %[addr0], %[block], 0x08)
+        PTR_ADDIU  "%[addr0],   %[addr0],       0x10                    \n\t"
         "blez       %[addr0],   1b                                      \n\t"
         : [ftmp0]"=&f"(ftmp[0]),            [ftmp1]"=&f"(ftmp[1]),
           [ftmp2]"=&f"(ftmp[2]),            [ftmp3]"=&f"(ftmp[3]),