Revision aecf157e libavformat/utils.c

View differences:

libavformat/utils.c
1965 1965
#define MAX_STD_TIMEBASES (60*12+5)
1966 1966
static int get_std_framerate(int i){
1967 1967
    if(i<60*12) return i*1001;
1968
    else        return ((int[]){24,30,60,12,15})[i-60*12]*1000*12;
1968
    else        return ((const int[]){24,30,60,12,15})[i-60*12]*1000*12;
1969 1969
}
1970 1970

  
1971 1971
/*
......
2869 2869
    int64_t t;
2870 2870
    struct tm dt;
2871 2871
    int i;
2872
    static const char *date_fmt[] = {
2872
    static const char * const date_fmt[] = {
2873 2873
        "%Y-%m-%d",
2874 2874
        "%Y%m%d",
2875 2875
    };
2876
    static const char *time_fmt[] = {
2876
    static const char * const time_fmt[] = {
2877 2877
        "%H:%M:%S",
2878 2878
        "%H%M%S",
2879 2879
    };

Also available in: Unified diff