]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/mmf.c
allocate 32 extra bytes at the end of the probe buffer and remove most probe buf_size...
[ffmpeg] / libavformat / mmf.c
index 40b1a497cc60f8492a2216ae284f369fc2cf7c85..e395587002ee44b1f42204a3050b94ccb6a8f736 100644 (file)
@@ -168,8 +168,6 @@ static int mmf_write_trailer(AVFormatContext *s)
 static int mmf_probe(AVProbeData *p)
 {
     /* check file header */
-    if (p->buf_size <= 32)
-        return 0;
     if (p->buf[0] == 'M' && p->buf[1] == 'M' &&
         p->buf[2] == 'M' && p->buf[3] == 'D' &&
         p->buf[8] == 'C' && p->buf[9] == 'N' &&