avfilter/f_sendcmd: make const arrays static const
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 10 Aug 2013 16:31:20 +0000 (18:31 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 10 Aug 2013 16:44:39 +0000 (18:44 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavfilter/f_sendcmd.c

index 9c7c5f5..bb8a178 100644 (file)
@@ -39,7 +39,7 @@
 
 static inline char *make_command_flags_str(AVBPrint *pbuf, int flags)
 {
-    const char *flag_strings[] = { "enter", "leave" };
+    static const char * const flag_strings[] = { "enter", "leave" };
     int i, is_first = 1;
 
     av_bprint_init(pbuf, 0, AV_BPRINT_SIZE_AUTOMATIC);