From 69fdc40db7db5982a0fdb1e13fa9208713345cab Mon Sep 17 00:00:00 2001 From: =?utf8?q?Diego=20Petten=C3=B2?= Date: Thu, 10 Jan 2008 10:16:36 +0000 Subject: [PATCH] =?utf8?q?Make=20pp=5Fhelp=20a=20constant=20array=20of=20c?= =?utf8?q?haracters=20to=20move=20it=20to=20.rodata.=20Patch=20by=20Diego?= =?utf8?q?=20'Flameeyes'=20Petten=C3=B2=20flameeyes=20=C2=A4=20gmail=20!?= =?utf8?q?=20com?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 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 1e84342..4890bf8 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 52211c5..cd0bc89 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], -- 2.7.4