Autodetect big-endian tiff files.

pull/79/head
Carl Eugen Hoyos 10 years ago
parent c68098ba4a
commit 050d79b6dd
  1. 3
      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;
}

Loading…
Cancel
Save