avcodec/tiff: Support uncompressed G3 CCITT fax

Fixes part of Ticket700

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Michael Niedermayer 2015-08-13 17:02:05 +02:00
parent a4f9bb228b
commit 7727f76230
1 changed files with 1 additions and 5 deletions

View 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 {