mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-28 20:53:54 +02:00
tiffenc: fix bpp value for monow/monob formats
This commit is contained in:
parent
d8297ca443
commit
995013ebc8
@ -282,7 +282,7 @@ static int encode_frame(AVCodecContext * avctx, unsigned char *buf,
|
||||
return -1;
|
||||
}
|
||||
if (!is_yuv)
|
||||
s->bpp_tab_size = (s->bpp >> 3);
|
||||
s->bpp_tab_size = ((s->bpp + 7) >> 3);
|
||||
|
||||
if (s->compr == TIFF_DEFLATE || s->compr == TIFF_ADOBE_DEFLATE || s->compr == TIFF_LZW)
|
||||
//best choose for DEFLATE
|
||||
|
Loading…
Reference in New Issue
Block a user