[FFmpeg-devel] [PATCH 1/2] avcodec/mips: fix compilation with MIPS16
Rosen Penev
rosenp at gmail.com
Sun Apr 12 04:54:32 EEST 2020
get_cabac_inline for mips uses inline asm that relies on mips32
instructions.
Signed-off-by: Rosen Penev <rosenp at gmail.com>
---
libavcodec/mips/cabac.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavcodec/mips/cabac.h b/libavcodec/mips/cabac.h
index 2a05e5ab3c..cc40dbba15 100644
--- a/libavcodec/mips/cabac.h
+++ b/libavcodec/mips/cabac.h
@@ -28,6 +28,7 @@
#include "libavutil/mips/mmiutils.h"
#include "config.h"
+#ifndef __mips16
#define get_cabac_inline get_cabac_inline_mips
static av_always_inline int get_cabac_inline(CABACContext *c,
uint8_t * const state){
@@ -116,4 +117,5 @@ static av_always_inline int get_cabac_inline(CABACContext *c,
return bit;
}
+#endif
#endif /* AVCODEC_MIPS_CABAC_H */
--
2.25.1
More information about the ffmpeg-devel
mailing list