]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/ipmovie.c
tls: cafile, cert, key options
[ffmpeg] / libavformat / ipmovie.c
index a60b96157386b90232edf607932600c1b91d4897..30ed16dd7891c257920c8500c655ee5dc5f5fb2a 100644 (file)
@@ -529,8 +529,9 @@ static int ipmovie_probe(AVProbeData *p)
     uint8_t *b = p->buf;
     uint8_t *b_end = p->buf + p->buf_size - sizeof(signature);
     do {
-        if (memcmp(b++, signature, sizeof(signature)) == 0)
+        if (b[0] == signature[0] && memcmp(b, signature, sizeof(signature)) == 0)
             return AVPROBE_SCORE_MAX;
+        b++;
     } while (b < b_end);
 
     return 0;