Revision ebfcf31d libavformat/matroska.c

View differences:

libavformat/matroska.c
1055 1055
     * we don't parse the whole header but simply check for the
1056 1056
     * availability of that array of characters inside the header.
1057 1057
     * Not fully fool-proof, but good enough. */
1058
    for (n = 4 + size; n < 4 + size + total - sizeof(probe_data); n++)
1058
    for (n = 4 + size; n <= 4 + size + total - sizeof(probe_data); n++)
1059 1059
        if (!memcmp (&p->buf[n], probe_data, sizeof(probe_data)))
1060 1060
            return AVPROBE_SCORE_MAX;
1061 1061

  

Also available in: Unified diff