OSDN Git Service

Fix PIC compilation, some defines were under #ifdef !PIC but used
authorBernhard Rosenkränzer <bero@arklinux.org>
Thu, 19 Oct 2006 20:24:33 +0000 (20:24 +0000)
committerDiego Biurrun <diego@biurrun.de>
Thu, 19 Oct 2006 20:24:33 +0000 (20:24 +0000)
in the PIC case nevertheless.
patch by Bernhard Rosenkranzer, bero arklinux org

Originally committed as revision 6738 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/cabac.h

index 403c0f4..826e281 100644 (file)
@@ -363,14 +363,14 @@ 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
-#if defined(ARCH_X86) && !(defined(PIC) && defined(__GNUC__))
-    int bit;
-
 #define LOW          "0"
 #define RANGE        "4"
 #define BYTESTART   "12"
 #define BYTE        "16"
 #define BYTEEND     "20"
+#if defined(ARCH_X86) && !(defined(PIC) && defined(__GNUC__))
+    int bit;
+
 #ifndef BRANCHLESS_CABAC_DECODER
     asm volatile(
         "movzbl (%1), %0                        \n\t"