[FFmpeg-cvslog] r11487 - in trunk/libpostproc: postprocess.c postprocess.h

benoit subversion
Thu Jan 10 11:16:36 CET 2008


Author: benoit
Date: Thu Jan 10 11:16:36 2008
New Revision: 11487

Log:
Make pp_help a constant array of characters to move it to .rodata.
Patch by Diego 'Flameeyes' Petten? flameeyes ? gmail ! com


Modified:
   trunk/libpostproc/postprocess.c
   trunk/libpostproc/postprocess.h

Modified: trunk/libpostproc/postprocess.c
==============================================================================
--- trunk/libpostproc/postprocess.c	(original)
+++ trunk/libpostproc/postprocess.c	Thu Jan 10 11:16:36 2008
@@ -694,7 +694,11 @@ static inline void postProcess(uint8_t s
 
 /* -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"

Modified: trunk/libpostproc/postprocess.h
==============================================================================
--- trunk/libpostproc/postprocess.h	(original)
+++ trunk/libpostproc/postprocess.h	Thu Jan 10 11:16:36 2008
@@ -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],




More information about the ffmpeg-cvslog mailing list