[FFmpeg-cvslog] avformat/tedcaptionsdec: 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:38 2013 +0200| [db4918b72e11a1008fb5b82c2ecff4b1c43a49bb] | committer: Michael Niedermayer

avformat/tedcaptionsdec: 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=db4918b72e11a1008fb5b82c2ecff4b1c43a49bb
---

 libavformat/tedcaptionsdec.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libavformat/tedcaptionsdec.c b/libavformat/tedcaptionsdec.c
index b468969..68063fa 100644
--- a/libavformat/tedcaptionsdec.c
+++ b/libavformat/tedcaptionsdec.c
@@ -153,7 +153,8 @@ static int parse_label(AVIOContext *pb, int *cur_byte, AVBPrint *bp)
 
 static int parse_boolean(AVIOContext *pb, int *cur_byte, int *result)
 {
-    const char *text[] = { "false", "true" }, *p;
+    static const char * const text[] = { "false", "true" };
+    const char *p;
     int i;
 
     skip_spaces(pb, cur_byte);



More information about the ffmpeg-cvslog mailing list