summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2006-07-05 20:32:19 +0000
committerLuca Barbato <lu_zero@gentoo.org>2006-07-05 20:32:19 +0000
commit24dd8c616d8f37cd5d0689e9c1f23d527945ebdc (patch)
tree041c5f71e26a43fee41dc45d19ff88d04878670d
parentbb428277fa747a606732e4518486086b130c9d9f (diff)
Make ffmpeg better support pic - from Diego Pettenò <flameeyes@gentoo.org>
Originally committed as revision 5631 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavutil/common.h4
-rw-r--r--libpostproc/postprocess_internal.h4
2 files changed, 8 insertions, 0 deletions
diff --git a/libavutil/common.h b/libavutil/common.h
index 6ef2a13296..7187c579c9 100644
--- a/libavutil/common.h
+++ b/libavutil/common.h
@@ -18,6 +18,10 @@
#define M_PI 3.14159265358979323846
#endif
+#if ( defined(__PIC__) || defined(__pic__) ) && ! defined(PIC)
+# define PIC
+#endif
+
#ifdef HAVE_AV_CONFIG_H
/* only include the following when compiling package */
# include "config.h"
diff --git a/libpostproc/postprocess_internal.h b/libpostproc/postprocess_internal.h
index 90107c733a..b1b15c8a85 100644
--- a/libpostproc/postprocess_internal.h
+++ b/libpostproc/postprocess_internal.h
@@ -58,6 +58,10 @@
#define TEMP_NOISE_FILTER 0x100000
#define FORCE_QUANT 0x200000
+#if ( defined(__PIC__) || defined(__pic__) ) && ! defined(PIC)
+# define PIC
+#endif
+
//use if u want a faster postprocessing code
//cant differentiate between chroma & luma filters (both on or both off)
//obviosly the -pp option at the commandline has no effect except turning the here selected