[FFmpeg-cvslog] movenc: mark astronomical_body const string as static

Clément Bœsch git at videolan.org
Sat Jun 25 10:30:48 CEST 2016


ffmpeg | branch: master | Clément Bœsch <u at pkh.me> | Sat Jun 25 10:30:28 2016 +0200| [1e9b79b2dbc389051bddeb7975dfab28c0409b57] | committer: Clément Bœsch

movenc: mark astronomical_body const string as static

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

 libavformat/movenc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index 693851e..eb6d82d 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -2974,7 +2974,7 @@ static int mov_write_loci_tag(AVFormatContext *s, AVIOContext *pb)
     AVDictionaryEntry *t = get_metadata_lang(s, "location", &lang);
     const char *ptr, *place = "";
     char *end;
-    const char *astronomical_body = "earth";
+    static const char *astronomical_body = "earth";
     if (!t)
         return 0;
 



More information about the ffmpeg-cvslog mailing list