[SCM] libav/experimental: gcc3 bug workaround

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 15:32:39 UTC 2013


The following commit has been merged in the experimental branch:
commit 55cb1ae6fcd56146c0197fde948038d44bb01eec
Author: Michael Niedermayer <michaelni at gmx.at>
Date:   Tue Jul 9 17:41:51 2002 +0000

    gcc3 bug workaround
    
    Originally committed as revision 727 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavcodec/common.h b/libavcodec/common.h
index 8ad8a8e..3af4755 100644
--- a/libavcodec/common.h
+++ b/libavcodec/common.h
@@ -165,7 +165,7 @@ inline void dprintf(const char* fmt,...) {}
 #define MAX(a,b) ((a) > (b) ? (a) : (b))
 #define MIN(a,b) ((a) > (b) ? (b) : (a))
 
-#ifdef ARCH_X86
+#if defined ARCH_X86 && (__GNUC__ != 3 || __GNUC_MINOR__ > 1)
 // inverse for shift optimization (gcc should do that ...)
 #define INV32(a) (-a)
 #else

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list