git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
491ca0e
)
tiff: print error for old style LZW
author
Michael Niedermayer
<michaelni@gmx.at>
Thu, 3 Jan 2013 03:25:55 +0000
(
04:25
+0100)
committer
Michael Niedermayer
<michaelni@gmx.at>
Thu, 3 Jan 2013 03:26:57 +0000
(
04:26
+0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/tiff.c
patch
|
blob
|
history
diff --git
a/libavcodec/tiff.c
b/libavcodec/tiff.c
index
e92967d
..
f700097
100644
(file)
--- a/
libavcodec/tiff.c
+++ b/
libavcodec/tiff.c
@@
-462,6
+462,9
@@
static int tiff_unpack_strip(TiffContext *s, uint8_t *dst, int stride,
src = s->deinvert_buf;
ssrc = src;
}
+ if (size > 1 && !src[0] && (src[1]&1)) {
+ av_log(s->avctx, AV_LOG_ERROR, "Old style LZW is unsupported\n");
+ }
if (ff_lzw_decode_init(s->lzw, 8, src, size, FF_LZW_TIFF) < 0) {
av_log(s->avctx, AV_LOG_ERROR, "Error initializing LZW decoder\n");
return -1;