changeset 1828:f1397cd39ec3 libavformat

fix an off-by-one error in probing function this prevented correct detection of Mushishi24-head.mkv
author aurel
date Thu, 01 Mar 2007 23:36:39 +0000
parents 2f2afa0a7bd3
children bf82ef5c32b4
files matroska.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;