diff tiff.c @ 10337:d1014913ad1b libavcodec

Do not attempt to decode TIFF files containing fax data with uncompressed mode allowed for there is no code to decode it (yet).
author kostya
date Thu, 01 Oct 2009 06:31:49 +0000
parents 5bbe55451800
children bdf4a9ca162a
line wrap: on
line diff
--- 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{