aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2011-05-13 01:49:15 +0200
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2011-05-13 16:34:07 +0200
commit995013ebc847f9c7bdc5fd8dc1df53c9ad4a7066 (patch)
treeb518bc6ce3981fd49a34754d327301893f1383d2
parentd8297ca443c8f7cc9ce3959ad287f9d380343266 (diff)
downloadffmpeg-995013ebc847f9c7bdc5fd8dc1df53c9ad4a7066.tar.gz
tiffenc: fix bpp value for monow/monob formats
-rw-r--r--libavcodec/tiffenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/tiffenc.c b/libavcodec/tiffenc.c
index dd55072026..d0614f5faf 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