# HG changeset patch # User kostya # Date 1254378709 0 # Node ID d1014913ad1bdce15945a4a09f76599152e4c6bf # Parent a554d7e29e994a844d9f0277cd40cc3383563c2a Do not attempt to decode TIFF files containing fax data with uncompressed mode allowed for there is no code to decode it (yet). diff -r a554d7e29e99 -r d1014913ad1b tiff.c --- a/tiff.c Thu Oct 01 05:52:38 2009 +0000 +++ b/tiff.c Thu Oct 01 06:31:49 2009 +0000 @@ -139,6 +139,11 @@ av_log(s->avctx, AV_LOG_ERROR, "Error allocating temporary buffer\n"); return -1; } + if(s->fax_opts & 2){ + av_log(s->avctx, AV_LOG_ERROR, "Uncompressed fax mode is not supported (yet)\n"); + av_free(src2); + return -1; + } if(!s->fill_order){ memcpy(src2, src, size); }else{