diff thp.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 deacffc2740e
children cabaa5557164
line wrap: on
line diff
--- a/thp.c	Sun Apr 08 09:50:08 2007 +0000
+++ b/thp.c	Sun Apr 08 11:34:15 2007 +0000
@@ -47,9 +47,6 @@
 static int thp_probe(AVProbeData *p)
 {
     /* check file header */
-    if (p->buf_size < 4)
-        return 0;
-
     if (AV_RL32(p->buf) == MKTAG('T', 'H', 'P', '\0'))
         return AVPROBE_SCORE_MAX;
     else