mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-25 04:30:02 +00:00
tiff: print error for old style LZW
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
491ca0e89f
commit
52334f5be2
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user