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

benoit subversion
Fri Jan 4 08:47:33 CET 2008


Author: benoit
Date: Fri Jan  4 08:47:32 2008
New Revision: 11390

Log:
Make pp_help a constant pointer to constant characters, moves it partially
in .rodata (the actual string) and partially in .data.relro (the pointer),
but doesn't change ABI.
Patch by Diego 'Flameeyes' Petten?  flameeyes at 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	Fri Jan  4 08:47:32 2008
@@ -697,7 +697,7 @@ static inline void postProcess(uint8_t s
 
 /* -pp Command line Help
 */
-char *pp_help=
+const char *const pp_help=
 "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	Fri Jan  4 08:47:32 2008
@@ -42,7 +42,7 @@
 typedef void pp_context_t;
 typedef void pp_mode_t;
 
-extern char *pp_help; ///< a simple help text
+extern const char *const pp_help; ///< a simple help text
 
 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