Browse Source

tiffenc: fix bpp value for monow/monob formats

tags/n0.8
Stefano Sabatini 15 years ago
parent
commit
995013ebc8
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/tiffenc.c

+ 1
- 1
libavcodec/tiffenc.c View File

@@ -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