summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-09-13 22:24:47 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-09-18 00:45:29 +0200
commit66bdc58550bcfe4d3e7dbe32ab8672865bd899aa (patch)
tree2674ef0e556e0240edabd65a94da69f2a993ace6
parentb0fabed20fd9cbdc96f36687b84ebe75941e32de (diff)
downloadffmpeg-66bdc58550bcfe4d3e7dbe32ab8672865bd899aa.tar.gz
get_cabac_inline_x86: workaround clang bug with disabled optimizations
gcc produces binary identical output relative to before this change Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/x86/cabac.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/x86/cabac.h b/libavcodec/x86/cabac.h
index dbac83f858..35f4ca7fdd 100644
--- a/libavcodec/x86/cabac.h
+++ b/libavcodec/x86/cabac.h
@@ -174,11 +174,12 @@ static av_always_inline int get_cabac_inline_x86(CABACContext *c,
AV_STRINGIFY(H264_LPS_RANGE_OFFSET),
AV_STRINGIFY(H264_MLPS_STATE_OFFSET),
"%8")
- : "=&r"(bit), "+&r"(c->low), "+&r"(c->range), "=&q"(tmp)
+ : "=&r"(bit), "=&r"(c->low), "=&r"(c->range), "=&q"(tmp)
: "r"(state), "r"(c),
"i"(offsetof(CABACContext, bytestream)),
"i"(offsetof(CABACContext, bytestream_end))
TABLES_ARG
+ ,"1"(c->low), "2"(c->range)
: "%"REG_c, "memory"
);
return bit & 1;