Commit 1db6045e87 for ffmpeg
commit 1db6045e877c5534f63987b361869a98fa521757
Author: Ramiro Polla <ramiro.polla@gmail.com>
Date: Sun Nov 1 23:41:49 2026 +0100
avcodec/x86/cabac: use read-write constraints for low and range operands
c->low and c->range are currently declared as write-only outputs, and
their initial values are also passed as inputs. Use "+" read-write
constraints instead, which is equivalent. No functional change.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Ramiro Polla <ramiro.polla@gmail.com>
diff --git a/libavcodec/x86/cabac.h b/libavcodec/x86/cabac.h
index 206b4e4346..371e668ec4 100644
--- a/libavcodec/x86/cabac.h
+++ b/libavcodec/x86/cabac.h
@@ -224,12 +224,11 @@ int get_cabac_inline_x86(CABACContext *c, uint8_t *const state)
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)
: "%"FF_REG_c, "memory"
);
return bit & 1;