aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/mips/cabac.h
diff options
context:
space:
mode:
authorJunxian Zhu <zhujunxian@oss.cipunited.com>2022-12-01 15:00:06 +0800
committerMichael Niedermayer <michael@niedermayer.cc>2023-03-26 01:46:39 +0100
commit5ffe18bcea9fcb1b3c816b8faeffcb17ca4b2669 (patch)
treec2e98fb4091ba360aeee2f4b77d582b038283176 /libavcodec/mips/cabac.h
parent653ee3f159411a1b97c19b96393a39f29569ed99 (diff)
downloadffmpeg-5ffe18bcea9fcb1b3c816b8faeffcb17ca4b2669.tar.gz
mips: fix build fail on MIPS R6
Add macro define to avoid causing build fail with incompatible assembler code on MIPS R6. Signed-off-by: Junxian Zhu <zhujunxian@oss.cipunited.com> Reviewed-by: Shiyou Yin <yinshiyou-hf@loongson.cn> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/mips/cabac.h')
-rw-r--r--libavcodec/mips/cabac.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/mips/cabac.h b/libavcodec/mips/cabac.h
index 39c308c7e0..20ecab4320 100644
--- a/libavcodec/mips/cabac.h
+++ b/libavcodec/mips/cabac.h
@@ -30,6 +30,7 @@
#include "libavutil/mips/mmiutils.h"
#include "config.h"
+#if !HAVE_MIPS32R6 && !HAVE_MIPS64R6
#define get_cabac_inline get_cabac_inline_mips
static av_always_inline int get_cabac_inline_mips(CABACContext *c,
uint8_t * const state){
@@ -225,4 +226,5 @@ static av_always_inline int get_cabac_bypass_sign_mips(CABACContext *c, int val)
return res;
}
+#endif /* !HAVE_MIPS32R6 && !HAVE_MIPS64R6 */
#endif /* AVCODEC_MIPS_CABAC_H */