[FFmpeg-devel] [PATCH] tiffenc: fix bpp value for monow/monob formats
Stefano Sabatini
stefano.sabatini-lala at poste.it
Fri May 13 02:18:10 CEST 2011
---
libavcodec/tiffenc.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libavcodec/tiffenc.c b/libavcodec/tiffenc.c
index dd55072..d0614f5 100644
--- a/libavcodec/tiffenc.c
+++ b/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
--
1.7.2.3
More information about the ffmpeg-devel
mailing list