diff options
author | Roberto Togni <r_togni@tiscali.it> | 2004-06-27 11:06:30 +0000 |
---|---|---|
committer | Roberto Togni <r_togni@tiscali.it> | 2004-06-27 11:06:30 +0000 |
commit | 44602899110061164476496fb48f06c40fe06132 (patch) | |
tree | 8bb93c2bf3b3b32fcda34ff1680699c4a28fd1c8 /libavcodec/smc.c | |
parent | a31de95620a8eafda622347ccbed03c495e6092b (diff) | |
download | ffmpeg-44602899110061164476496fb48f06c40fe06132.tar.gz |
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.c | 2 |
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) { |