From 69fdc40db7db5982a0fdb1e13fa9208713345cab Mon Sep 17 00:00:00 2001 From: Diego Pettenò Date: Thu, 10 Jan 2008 10:16:36 +0000 Subject: Make pp_help a constant array of characters to move it to .rodata. Patch by Diego 'Flameeyes' Pettenò flameeyes ¤ gmail ! com MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Originally committed as revision 11487 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libpostproc/postprocess.c | 4 ++++ libpostproc/postprocess.h | 4 ++++ 2 files changed, 8 insertions(+) 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], -- cgit v1.2.3