tiffenc: fix bpp value for monow/monob formats

pull/2/head
Stefano Sabatini 14 years ago
parent d8297ca443
commit 995013ebc8
  1. 2
      libavcodec/tiffenc.c

@ -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…
Cancel
Save