[Ffmpeg-cvslog] r8177 - trunk/libavformat/matroska.c

aurel subversion
Fri Mar 2 00:36:39 CET 2007


Author: aurel
Date: Fri Mar  2 00:36:39 2007
New Revision: 8177

Modified:
   trunk/libavformat/matroska.c

Log:
fix an off-by-one error in probing function
this prevented correct detection of Mushishi24-head.mkv


Modified: trunk/libavformat/matroska.c
==============================================================================
--- trunk/libavformat/matroska.c	(original)
+++ trunk/libavformat/matroska.c	Fri Mar  2 00:36:39 2007
@@ -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;
 




More information about the ffmpeg-cvslog mailing list