diff ffm.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 491581a2b9a7
children 3427d0c63a32
line wrap: on
line diff
--- a/ffm.c	Sun Apr 08 09:50:08 2007 +0000
+++ b/ffm.c	Sun Apr 08 11:34:15 2007 +0000
@@ -758,7 +758,7 @@
 
 static int ffm_probe(AVProbeData *p)
 {
-    if (p->buf_size >= 4 &&
+    if (
         p->buf[0] == 'F' && p->buf[1] == 'F' && p->buf[2] == 'M' &&
         p->buf[3] == '1')
         return AVPROBE_SCORE_MAX + 1;