summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorShiyou Yin <yinshiyou-hf@loongson.cn>2020-07-29 18:11:00 +0800
committerMichael Niedermayer <michael@niedermayer.cc>2020-07-30 00:23:45 +0200
commit1563b4b4c615e2264c2d302b97b1d507e153255c (patch)
treeb9baa8904c6ab2e1a2e65a983bda33faae987cf8 /libavcodec
parent0e0a9ca04822f7d3ce0792f5cec3be7b2c738f9a (diff)
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@niedermayer.cc>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/mips/cabac.h2
1 files changed, 1 insertions, 1 deletions
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"
);