From 050d79b6ddaf2c675ae89b77e5f9e82dcb3fba58 Mon Sep 17 00:00:00 2001 From: Carl Eugen Hoyos Date: Tue, 22 Jul 2014 17:15:20 +0200 Subject: [PATCH] Autodetect big-endian tiff files. --- libavformat/img2dec.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavformat/img2dec.c b/libavformat/img2dec.c index f97800797e..cf51c0bb09 100644 --- a/libavformat/img2dec.c +++ b/libavformat/img2dec.c @@ -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; }