[FFmpeg-cvslog] avcodec/mips/cabac: Fix a bug in get_cabac_inline_mips.

Shiyou Yin git at videolan.org
Thu Jul 30 01:24:41 EEST 2020


ffmpeg | branch: master | Shiyou Yin <yinshiyou-hf at loongson.cn> | Wed Jul 29 18:11:00 2020 +0800| [1563b4b4c615e2264c2d302b97b1d507e153255c] | committer: Michael Niedermayer

avcodec/mips/cabac: Fix a bug in get_cabac_inline_mips.

Failed fate case: fate-h264-conformance-caba2_sony_e
Clang is more strict in the use of register constraint.

Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1563b4b4c615e2264c2d302b97b1d507e153255c
---

 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 c595915eda..3d09e93523 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"
     );
 



More information about the ffmpeg-cvslog mailing list