summaryrefslogtreecommitdiff
path: root/libavcodec/smc.c
diff options
context:
space:
mode:
authorRoberto Togni <r_togni@tiscali.it>2004-06-27 11:06:30 +0000
committerRoberto Togni <r_togni@tiscali.it>2004-06-27 11:06:30 +0000
commit44602899110061164476496fb48f06c40fe06132 (patch)
tree8bb93c2bf3b3b32fcda34ff1680699c4a28fd1c8 /libavcodec/smc.c
parenta31de95620a8eafda622347ccbed03c495e6092b (diff)
fix for width or height not multiple of 4
Originally committed as revision 3261 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/smc.c')
-rw-r--r--libavcodec/smc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/smc.c b/libavcodec/smc.c
index e937b03c86..47c7d93d4c 100644
--- a/libavcodec/smc.c
+++ b/libavcodec/smc.c
@@ -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) {