From c61b9d4473c4023415ddc35b4562bfc8dc1e6b0c Mon Sep 17 00:00:00 2001
From: Michael Niedermayer <michaelni@gmx.at>
Date: Mon, 27 Nov 2006 10:56:10 +0000
Subject: [PATCH] PIC fix

Originally committed as revision 7173 to svn://svn.ffmpeg.org/ffmpeg/trunk
---
 libavcodec/cabac.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/cabac.h b/libavcodec/cabac.h
index 5956f5c0199..43fe78e3bb4 100644
--- a/libavcodec/cabac.h
+++ b/libavcodec/cabac.h
@@ -632,7 +632,7 @@ static int get_cabac_bypass(CABACContext *c){
 
 
 static always_inline int get_cabac_bypass_sign(CABACContext *c, int val){
-#ifdef ARCH_X86
+#if defined(ARCH_X86) && !(defined(PIC) && defined(__GNUC__))
     asm volatile(
         "movl "RANGE    "(%1), %%ebx            \n\t"
         "movl "LOW      "(%1), %%eax            \n\t"
-- 
GitLab