diff mbox

[FFmpeg-devel] Bug fix:- renamed the macro variable which causes segfault for mips r6

Message ID 1475670144-6185-1-git-send-email-shivraj.patil@imgtec.com
State Accepted
Commit c1cc13cd2a9b8d6d2810ec42454f328a1a0d5efa
Headers show

Commit Message

shivraj.patil@imgtec.com Oct. 5, 2016, 12:22 p.m. UTC
From: Shivraj Patil <shivraj.patil@imgtec.com>

Signed-off-by: Shivraj Patil <shivraj.patil@imgtec.com>
---
 libavutil/mips/generic_macros_msa.h |   12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

Comments

Michael Niedermayer Oct. 5, 2016, 9:22 p.m. UTC | #1
On Wed, Oct 05, 2016 at 05:52:24PM +0530, shivraj.patil@imgtec.com wrote:
> From: Shivraj Patil <shivraj.patil@imgtec.com>
> 
> Signed-off-by: Shivraj Patil <shivraj.patil@imgtec.com>
> ---
>  libavutil/mips/generic_macros_msa.h |   12 ++++++------
>  1 file changed, 6 insertions(+), 6 deletions(-)

applied

thx

[...]
diff mbox

Patch

diff --git a/libavutil/mips/generic_macros_msa.h b/libavutil/mips/generic_macros_msa.h
index b1d18dd..0a59619 100644
--- a/libavutil/mips/generic_macros_msa.h
+++ b/libavutil/mips/generic_macros_msa.h
@@ -85,12 +85,12 @@ 
     #else  // !(__mips == 64)
         #define LD(psrc)                                              \
         ( {                                                           \
-            uint8_t *psrc_m = (uint8_t *) (psrc);                     \
+            uint8_t *psrc_ld_m = (uint8_t *) (psrc);                  \
             uint32_t val0_m, val1_m;                                  \
             uint64_t val_m = 0;                                       \
                                                                       \
-            val0_m = LW(psrc_m);                                      \
-            val1_m = LW(psrc_m + 4);                                  \
+            val0_m = LW(psrc_ld_m);                                   \
+            val1_m = LW(psrc_ld_m + 4);                               \
                                                                       \
             val_m = (uint64_t) (val1_m);                              \
             val_m = (uint64_t) ((val_m << 32) & 0xFFFFFFFF00000000);  \
@@ -172,12 +172,12 @@ 
     #else  // !(__mips == 64)
         #define LD(psrc)                                              \
         ( {                                                           \
-            uint8_t *psrc_m1 = (uint8_t *) (psrc);                    \
+            uint8_t *psrc_ld_m = (uint8_t *) (psrc);                  \
             uint32_t val0_m, val1_m;                                  \
             uint64_t val_m = 0;                                       \
                                                                       \
-            val0_m = LW(psrc_m1);                                     \
-            val1_m = LW(psrc_m1 + 4);                                 \
+            val0_m = LW(psrc_ld_m);                                   \
+            val1_m = LW(psrc_ld_m + 4);                               \
                                                                       \
             val_m = (uint64_t) (val1_m);                              \
             val_m = (uint64_t) ((val_m << 32) & 0xFFFFFFFF00000000);  \