1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

fix an off-by-one error in probing function

this prevented correct detection of Mushishi24-head.mkv

Originally committed as revision 8177 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Aurelien Jacobs 2007-03-01 23:36:39 +00:00
parent 9340a99588
commit ebfcf31ddf

View File

@ -1055,7 +1055,7 @@ matroska_probe (AVProbeData *p)
* 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;