1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-21 10:55:51 +02:00

TIFF may omit compression tag.

This fixes issue 276.

Originally committed as revision 11121 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Kostya Shishkov 2007-12-01 15:41:35 +00:00
parent 7338d36808
commit 329851e032

View File

@ -422,6 +422,7 @@ static int decode_frame(AVCodecContext *avctx,
}
s->le = le;
s->invert = 0;
s->compr = TIFF_RAW;
// As TIFF 6.0 specification puts it "An arbitrary but carefully chosen number
// that further identifies the file as a TIFF file"
if(tget_short(&buf, le) != 42){