summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAurelien Jacobs <aurel@gnuage.org>2007-03-01 23:36:39 +0000
committerAurelien Jacobs <aurel@gnuage.org>2007-03-01 23:36:39 +0000
commitebfcf31ddf654b6e44c8cebb51bfe0ba0964b33e (patch)
treec9d0912ad0f37a40ce13d6ae66eaa103c2e8539f
parent9340a99588c2bf6209b5c396df15b893c4b576b5 (diff)
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
-rw-r--r--libavformat/matroska.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/matroska.c b/libavformat/matroska.c
index 13321abee9..c122f932e5 100644
--- a/libavformat/matroska.c
+++ b/libavformat/matroska.c
@@ -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;