Revision 21330978 libavcodec/tiff.c

View differences:

libavcodec/tiff.c
110 110

  
111 111
    if(s->compr == TIFF_DEFLATE || s->compr == TIFF_ADOBE_DEFLATE){
112 112
        outlen = width * lines;
113
        if(lines != s->height){
114
            av_log(s->avctx, AV_LOG_ERROR, "This decoder won't decode ZLib-packed TIFF with %i lines per strip\n", lines);
115
            return -1;
116
        }
117 113
        zbuf = av_malloc(outlen);
118 114
        if(uncompress(zbuf, &outlen, src, size) != Z_OK){
119 115
            av_log(s->avctx, AV_LOG_ERROR, "Uncompressing failed (%lu of %lu)\n", outlen, (unsigned long)width * lines);

Also available in: Unified diff