提交 4fe796b3 编写于 作者: R Reimar Döffinger

msrle: correctly round linesize for < 8 bpp formats.

Fixes trac issue #338.
Signed-off-by: NReimar Döffinger <Reimar.Doeffinger@gmx.de>
上级 27fbe31c
......@@ -107,7 +107,7 @@ static int msrle_decode_frame(AVCodecContext *avctx,
/* FIXME how to correctly detect RLE ??? */
if (avctx->height * istride == avpkt->size) { /* assume uncompressed */
int linesize = avctx->width * avctx->bits_per_coded_sample / 8;
int linesize = (avctx->width * avctx->bits_per_coded_sample + 7) / 8;
uint8_t *ptr = s->frame.data[0];
uint8_t *buf = avpkt->data + (avctx->height-1)*istride;
int i, j;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册