summaryrefslogtreecommitdiff
path: root/libpostproc
diff options
context:
space:
mode:
authorDiego Pettenò <flameeyes@gmail.com>2008-01-10 10:16:36 +0000
committerBenoit Fouet <benoit.fouet@free.fr>2008-01-10 10:16:36 +0000
commit69fdc40db7db5982a0fdb1e13fa9208713345cab (patch)
tree98bdb2bf6ab6c1c15e76b600bba6280f1df12899 /libpostproc
parent649537438eaf5592ce5a08623e0d9e85a484ff40 (diff)
downloadffmpeg-69fdc40db7db5982a0fdb1e13fa9208713345cab.tar.gz
Make pp_help a constant array of characters to move it to .rodata.
Patch by Diego 'Flameeyes' Pettenò flameeyes ¤ gmail ! com Originally committed as revision 11487 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libpostproc')
-rw-r--r--libpostproc/postprocess.c4
-rw-r--r--libpostproc/postprocess.h4
2 files changed, 8 insertions, 0 deletions
diff --git a/libpostproc/postprocess.c b/libpostproc/postprocess.c
index 1e843422be..4890bf841a 100644
--- a/libpostproc/postprocess.c
+++ b/libpostproc/postprocess.c
@@ -694,7 +694,11 @@ static inline void postProcess(uint8_t src[], int srcStride, uint8_t dst[], int
/* -pp Command line Help
*/
+#if LIBPOSTPROC_VERSION_INT < (52<<16)
const char *const pp_help=
+#else
+const char pp_help[] =
+#endif
"Available postprocessing filters:\n"
"Filters Options\n"
"short long name short long option Description\n"
diff --git a/libpostproc/postprocess.h b/libpostproc/postprocess.h
index 52211c5739..cd0bc89a9b 100644
--- a/libpostproc/postprocess.h
+++ b/libpostproc/postprocess.h
@@ -42,7 +42,11 @@
typedef void pp_context_t;
typedef void pp_mode_t;
+#if LIBPOSTPROC_VERSION_INT < (52<<16)
extern const char *const pp_help; ///< a simple help text
+#else
+extern const char pp_help[]; ///< a simple help text
+#endif
void pp_postprocess(uint8_t * src[3], int srcStride[3],
uint8_t * dst[3], int dstStride[3],