projects
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a31de95
)
fix for width or height not multiple of 4
author
Roberto Togni
<r_togni@tiscali.it>
Sun, 27 Jun 2004 11:06:30 +0000
(11:06 +0000)
committer
Roberto Togni
<r_togni@tiscali.it>
Sun, 27 Jun 2004 11:06:30 +0000
(11:06 +0000)
Originally committed as revision 3261 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/smc.c
patch
|
blob
|
blame
|
history
diff --git
a/libavcodec/smc.c
b/libavcodec/smc.c
index
e937b03
..
47c7d93
100644
(file)
--- 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) {