提交 44602899 编写于 作者: R Roberto Togni

fix for width or height not multiple of 4

Originally committed as revision 3261 to svn://svn.ffmpeg.org/ffmpeg/trunk
上级 a31de956
......@@ -125,7 +125,7 @@ static void smc_decode_stream(SmcContext *s)
chunk_size, s->size);
chunk_size = s->size;
total_blocks = (s->avctx->width * s->avctx->height) / (4 * 4);
total_blocks = ((s->avctx->width + 3) / 4) * ((s->avctx->height + 3) / 4);
/* traverse through the blocks */
while (total_blocks) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册