Autodetect big-endian tiff files.
authorCarl Eugen Hoyos <cehoyos@ag.or.at>
Tue, 22 Jul 2014 15:15:20 +0000 (17:15 +0200)
committerCarl Eugen Hoyos <cehoyos@ag.or.at>
Tue, 22 Jul 2014 16:09:14 +0000 (18:09 +0200)
libavformat/img2dec.c

index f978007..cf51c0b 100644 (file)
@@ -652,7 +652,8 @@ static int tiff_probe(AVProbeData *p)
 {
     const uint8_t *b = p->buf;
 
-    if (AV_RB32(b) == 0x49492a00)
+    if (AV_RB32(b) == 0x49492a00 ||
+        AV_RB32(b) == 0x4D4D002a)
         return AVPROBE_SCORE_EXTENSION + 1;
     return 0;
 }