tiff: add support for inverted FillOrder for uncompressed data
Fix decoding of file b.tif, trac issue #168. Signed-off-by: Diego Biurrun <diego@biurrun.de>
This commit is contained in:
parent
bea705752d
commit
b437f5b055
@ -170,7 +170,13 @@ static int tiff_unpack_strip(TiffContext *s, uint8_t* dst, int stride, const uin
|
|||||||
}
|
}
|
||||||
switch(s->compr){
|
switch(s->compr){
|
||||||
case TIFF_RAW:
|
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;
|
src += width;
|
||||||
break;
|
break;
|
||||||
case TIFF_PACKBITS:
|
case TIFF_PACKBITS:
|
||||||
|
Loading…
Reference in New Issue
Block a user