Commit b437f5b0 authored by Stefano Sabatini's avatar Stefano Sabatini Committed by Diego Biurrun

tiff: add support for inverted FillOrder for uncompressed data

Fix decoding of file b.tif, trac issue #168.
Signed-off-by: 's avatarDiego Biurrun <diego@biurrun.de>
parent bea70575
......@@ -170,7 +170,13 @@ static int tiff_unpack_strip(TiffContext *s, uint8_t* dst, int stride, const uin
}
switch(s->compr){
case TIFF_RAW:
memcpy(dst, src, width);
if (!s->fill_order) {
memcpy(dst, src, width);
} else {
int i;
for (i = 0; i < width; i++)
dst[i] = av_reverse[src[i]];
}
src += width;
break;
case TIFF_PACKBITS:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment