summaryrefslogtreecommitdiffstats
path: root/libavformat/img2dec.c
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2014-07-22 17:15:20 +0200
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2014-07-22 18:09:14 +0200
commit050d79b6ddaf2c675ae89b77e5f9e82dcb3fba58 (patch)
tree4711807c013ad534f5fc93efd802878c1f805132 /libavformat/img2dec.c
parentc68098ba4a1456e5e17ae6435db7487c64890934 (diff)
downloadffmpeg-streaming-050d79b6ddaf2c675ae89b77e5f9e82dcb3fba58.zip
ffmpeg-streaming-050d79b6ddaf2c675ae89b77e5f9e82dcb3fba58.tar.gz
Autodetect big-endian tiff files.
Diffstat (limited to 'libavformat/img2dec.c')
-rw-r--r--libavformat/img2dec.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/img2dec.c b/libavformat/img2dec.c
index f978007..cf51c0b 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;
}
OpenPOWER on IntegriCloud