mirror of https://git.ffmpeg.org/ffmpeg.git
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;
|
return -1;
|
||||||
}
|
}
|
||||||
if (!is_yuv)
|
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)
|
if (s->compr == TIFF_DEFLATE || s->compr == TIFF_ADOBE_DEFLATE || s->compr == TIFF_LZW)
|
||||||
//best choose for DEFLATE
|
//best choose for DEFLATE
|
||||||
|
|
Loading…
Reference in New Issue