changeset 4188:57b22f48a6a6 libavcodec

Decoder can decode many ZLib-packed strips
author kostya
date Mon, 13 Nov 2006 11:27:36 +0000
parents 46f12596304f
children 3c98b0938897
files tiff.c
diffstat 1 files changed, 0 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/tiff.c	Mon Nov 13 11:20:50 2006 +0000
+++ b/tiff.c	Mon Nov 13 11:27:36 2006 +0000
@@ -110,10 +110,6 @@
 
     if(s->compr == TIFF_DEFLATE || s->compr == TIFF_ADOBE_DEFLATE){
         outlen = width * lines;
-        if(lines != s->height){
-            av_log(s->avctx, AV_LOG_ERROR, "This decoder won't decode ZLib-packed TIFF with %i lines per strip\n", lines);
-            return -1;
-        }
         zbuf = av_malloc(outlen);
         if(uncompress(zbuf, &outlen, src, size) != Z_OK){
             av_log(s->avctx, AV_LOG_ERROR, "Uncompressing failed (%lu of %lu)\n", outlen, (unsigned long)width * lines);