OSDN Git Service

this code will not work with PIC as it needs 7 registers and gcc doesnt support that...
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 15 Oct 2006 20:50:05 +0000 (20:50 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 15 Oct 2006 20:50:05 +0000 (20:50 +0000)
Originally committed as revision 6703 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/cabac.h

index dc114b4..b17667c 100644 (file)
@@ -362,7 +362,7 @@ static inline void renorm_cabac_decoder_once(CABACContext *c){
 
 static int always_inline get_cabac_inline(CABACContext *c, uint8_t * const state){
     //FIXME gcc generates duplicate load/stores for c->low and c->range
-#ifdef ARCH_X86
+#if defined(ARCH_X86) && !defined(PIC)
     int bit;
 
 #define LOW          "0"