OSDN Git Service
(root)
/
coroid
/
libav_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bea7057
)
tiff: add support for inverted FillOrder for uncompressed data
author
Stefano Sabatini
<stefano.sabatini-lala@poste.it>
Mon, 9 May 2011 19:59:20 +0000
(21:59 +0200)
committer
Diego Biurrun
<diego@biurrun.de>
Wed, 11 May 2011 11:55:44 +0000
(13:55 +0200)
Fix decoding of file b.tif, trac issue #168.
Signed-off-by: Diego Biurrun <diego@biurrun.de>
libavcodec/tiff.c
patch
|
blob
|
history
diff --git
a/libavcodec/tiff.c
b/libavcodec/tiff.c
index
3cc3a42
..
1ec78a7
100644
(file)
--- a/
libavcodec/tiff.c
+++ b/
libavcodec/tiff.c
@@
-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: