Revision aecf157e

View differences:

libavformat/img2.c
72 72
    { CODEC_ID_NONE      , NULL}
73 73
};
74 74

  
75
static int sizes[][2] = {
75
static const int sizes[][2] = {
76 76
    { 640, 480 },
77 77
    { 720, 480 },
78 78
    { 720, 576 },
libavformat/mmf.c
27 27
    offset_t data_size;
28 28
} MMFContext;
29 29

  
30
static int mmf_rates[] = { 4000, 8000, 11025, 22050, 44100 };
30
static const int mmf_rates[] = { 4000, 8000, 11025, 22050, 44100 };
31 31

  
32 32
static int mmf_rate(int code)
33 33
{
libavformat/oma.c
89 89
    if (ret != EA3_HEADER_SIZE)
90 90
        return -1;
91 91

  
92
    if (memcmp(buf, (uint8_t[]){'E', 'A', '3'},3) || buf[4] != 0 || buf[5] != EA3_HEADER_SIZE) {
92
    if (memcmp(buf, (const uint8_t[]){'E', 'A', '3'},3) || buf[4] != 0 || buf[5] != EA3_HEADER_SIZE) {
93 93
        av_log(s, AV_LOG_ERROR, "Couldn't find the EA3 header !\n");
94 94
        return -1;
95 95
    }
......
177 177

  
178 178
static int oma_read_probe(AVProbeData *p)
179 179
{
180
    if (!memcmp(p->buf, (uint8_t[]){'e', 'a', '3', 3, 0},5))
180
    if (!memcmp(p->buf, (const uint8_t[]){'e', 'a', '3', 3, 0},5))
181 181
        return AVPROBE_SCORE_MAX;
182 182
    else
183 183
        return 0;
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