Revision aecf157e libavformat/oma.c

View differences:

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;

Also available in: Unified diff