diff nsvdec.c @ 2001:1a3c9056982a libavformat

allocate 32 extra bytes at the end of the probe buffer and remove most probe buf_size checks
author michael
date Sun, 08 Apr 2007 11:34:15 +0000
parents 70b741fa63eb
children 1aa1bc9c5be8
line wrap: on
line diff
--- a/nsvdec.c	Sun Apr 08 09:50:08 2007 +0000
+++ b/nsvdec.c	Sun Apr 08 11:34:15 2007 +0000
@@ -728,8 +728,6 @@
     int i;
 //    PRINT(("nsv_probe(), buf_size %d\n", p->buf_size));
     /* check file header */
-    if (p->buf_size <= 32)
-        return 0;
     if (p->buf[0] == 'N' && p->buf[1] == 'S' &&
         p->buf[2] == 'V' && p->buf[3] == 'f')
         return AVPROBE_SCORE_MAX;