[FFmpeg-devel] [PATCH 3/4] [mips]: Fix a bug in get_cabac_inline_mips.

Shiyou Yin yinshiyou-hf at loongson.cn
Wed Jul 29 13:11:00 EEST 2020


Failed fate case: fate-h264-conformance-caba2_sony_e
Clang is more strict in the use of register constraint.
---
 libavcodec/mips/cabac.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/mips/cabac.h b/libavcodec/mips/cabac.h
index c595915..3d09e93 100644
--- a/libavcodec/mips/cabac.h
+++ b/libavcodec/mips/cabac.h
@@ -109,7 +109,7 @@ static av_always_inline int get_cabac_inline_mips(CABACContext *c,
       [lps_off]"i"(H264_LPS_RANGE_OFFSET),
       [mlps_off]"i"(H264_MLPS_STATE_OFFSET + 128),
       [norm_off]"i"(H264_NORM_SHIFT_OFFSET),
-      [cabac_mask]"i"(CABAC_MASK)
+      [cabac_mask]"r"(CABAC_MASK)
     : "memory"
     );
 
-- 
2.1.0



More information about the ffmpeg-devel mailing list