Mercurial > libavformat.hg
diff utils.c @ 3769:93d4898d9b6e libavformat
Mark several libavformat arrays const
author | reimar |
---|---|
date | Sun, 24 Aug 2008 17:24:34 +0000 |
parents | e966560661e5 |
children | d4b086282604 |
line wrap: on
line diff
--- a/utils.c Sun Aug 24 17:19:46 2008 +0000 +++ b/utils.c Sun Aug 24 17:24:34 2008 +0000 @@ -1965,7 +1965,7 @@ #define MAX_STD_TIMEBASES (60*12+5) static int get_std_framerate(int i){ if(i<60*12) return i*1001; - else return ((int[]){24,30,60,12,15})[i-60*12]*1000*12; + else return ((const int[]){24,30,60,12,15})[i-60*12]*1000*12; } /* @@ -2869,11 +2869,11 @@ int64_t t; struct tm dt; int i; - static const char *date_fmt[] = { + static const char * const date_fmt[] = { "%Y-%m-%d", "%Y%m%d", }; - static const char *time_fmt[] = { + static const char * const time_fmt[] = { "%H:%M:%S", "%H%M%S", };