# HG changeset patch # User aurel # Date 1172792199 0 # Node ID f1397cd39ec3fdeb674f00d59cb532dcb931899b # Parent 2f2afa0a7bd370b8dea61fcd6872a944560217ba fix an off-by-one error in probing function this prevented correct detection of Mushishi24-head.mkv diff -r 2f2afa0a7bd3 -r f1397cd39ec3 matroska.c --- a/matroska.c Thu Mar 01 19:02:21 2007 +0000 +++ b/matroska.c Thu Mar 01 23:36:39 2007 +0000 @@ -1055,7 +1055,7 @@ * we don't parse the whole header but simply check for the * availability of that array of characters inside the header. * Not fully fool-proof, but good enough. */ - for (n = 4 + size; n < 4 + size + total - sizeof(probe_data); n++) + for (n = 4 + size; n <= 4 + size + total - sizeof(probe_data); n++) if (!memcmp (&p->buf[n], probe_data, sizeof(probe_data))) return AVPROBE_SCORE_MAX;