Commit 973df916 authored by rtognimp's avatar rtognimp

fix for width or height not multiple of 4


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@3261 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent b324d794
......@@ -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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment