]> git.sesse.net Git - ffmpeg/commitdiff
avcodec/tiff: Support uncompressed G3 CCITT fax
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 13 Aug 2015 15:02:05 +0000 (17:02 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 13 Aug 2015 15:02:05 +0000 (17:02 +0200)
Fixes part of Ticket700

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/tiff.c

index 55ec0ac07ef30427f568573e9ce3d5fe618404ca..d5c6398a17c49df8a90a389845891b6d8bc2a63e 100644 (file)
@@ -460,11 +460,7 @@ static int tiff_unpack_fax(TiffContext *s, uint8_t *dst, int stride,
                "Error allocating temporary buffer\n");
         return AVERROR(ENOMEM);
     }
-    if ((s->fax_opts & 2) && s->compr == TIFF_G3) {
-        avpriv_request_sample(s->avctx, "Uncompressed fax mode");
-        av_free(src2);
-        return AVERROR_PATCHWELCOME;
-    }
+
     if (!s->fill_order) {
         memcpy(src2, src, size);
     } else {