From aaff3b312ed0a67750aa0a3a3300a3b69bb87150 Mon Sep 17 00:00:00 2001 From: Justin Ruggles Date: Tue, 15 Mar 2011 13:35:05 -0400 Subject: [PATCH] mathops: change "g" constraint to "rm" in x86-32 version of MUL64(). The 1-arg imul instruction cannot take an immediate argument, only a register or memory argument. --- libavcodec/x86/mathops.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/x86/mathops.h b/libavcodec/x86/mathops.h index 4e54886227..b18302744c 100644 --- a/libavcodec/x86/mathops.h +++ b/libavcodec/x86/mathops.h @@ -59,7 +59,7 @@ static av_always_inline av_const int64_t MUL64(int a, int b) __asm__ ( "imull %2" :"=A"(rt) - :"a"(a), "g"(b) + :"a"(a), "rm"(b) ); return rt; }