[FFmpeg-cvslog] avfilter/f_sendcmd: make const arrays static const

Michael Niedermayer git at videolan.org
Sat Aug 10 18:59:33 CEST 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Aug 10 18:31:20 2013 +0200| [0b5627189d83bebbde86816c9daddb8f83489245] | committer: Michael Niedermayer

avfilter/f_sendcmd: make const arrays static const

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0b5627189d83bebbde86816c9daddb8f83489245
---

 libavfilter/f_sendcmd.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/f_sendcmd.c b/libavfilter/f_sendcmd.c
index 9c7c5f5..bb8a178 100644
--- a/libavfilter/f_sendcmd.c
+++ b/libavfilter/f_sendcmd.c
@@ -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);



More information about the ffmpeg-cvslog mailing list