mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-30 14:40:32 +00:00
Support decoding of monochrome tiff images without bpp tag.
This commit is contained in:
parent
7680d99b43
commit
8e082df0f4
@ -1008,6 +1008,8 @@ static int decode_frame(AVCodecContext *avctx,
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
s->le = le;
|
s->le = le;
|
||||||
|
// TIFF_BPP is not a required tag and defaults to 1
|
||||||
|
s->bppcount = s->bpp = 1;
|
||||||
s->invert = 0;
|
s->invert = 0;
|
||||||
s->compr = TIFF_RAW;
|
s->compr = TIFF_RAW;
|
||||||
s->fill_order = 0;
|
s->fill_order = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user