1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

fix for width or height not multiple of 4

Originally committed as revision 3261 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Roberto Togni 2004-06-27 11:06:30 +00:00
parent a31de95620
commit 4460289911

View File

@ -125,7 +125,7 @@ static void smc_decode_stream(SmcContext *s)
chunk_size, s->size); chunk_size, s->size);
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 */ /* traverse through the blocks */
while (total_blocks) { while (total_blocks) {