Browse code

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

Diego Pettenò authored on 2008/01/10 19:16:36
Showing 2 changed files
... ...
@@ -694,7 +694,11 @@ static inline void postProcess(uint8_t src[], int srcStride, uint8_t dst[], int
694 694
 
695 695
 /* -pp Command line Help
696 696
 */
697
+#if LIBPOSTPROC_VERSION_INT < (52<<16)
697 698
 const char *const pp_help=
699
+#else
700
+const char pp_help[] =
701
+#endif
698 702
 "Available postprocessing filters:\n"
699 703
 "Filters                        Options\n"
700 704
 "short  long name       short   long option     Description\n"
... ...
@@ -42,7 +42,11 @@
42 42
 typedef void pp_context_t;
43 43
 typedef void pp_mode_t;
44 44
 
45
+#if LIBPOSTPROC_VERSION_INT < (52<<16)
45 46
 extern const char *const pp_help; ///< a simple help text
47
+#else
48
+extern const char pp_help[]; ///< a simple help text
49
+#endif
46 50
 
47 51
 void  pp_postprocess(uint8_t * src[3], int srcStride[3],
48 52
                  uint8_t * dst[3], int dstStride[3],