projects
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9e9080b
)
rpza resolution fix, courtesy of Todd Kirby (doubleshot at pacbell.net)
author
Mike Melanson
<mike@multimedia.cx>
Wed, 26 May 2004 02:42:41 +0000
(
02:42
+0000)
committer
Mike Melanson
<mike@multimedia.cx>
Wed, 26 May 2004 02:42:41 +0000
(
02:42
+0000)
Originally committed as revision 3159 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/rpza.c
patch
|
blob
|
blame
|
history
diff --git
a/libavcodec/rpza.c
b/libavcodec/rpza.c
index
1c429f6
..
2be2634
100644
(file)
--- a/
libavcodec/rpza.c
+++ b/
libavcodec/rpza.c
@@
-106,7
+106,7
@@
static void rpza_decode_stream(RpzaContext *s)
chunk_size = s->size;
/* Number of 4x4 blocks in frame. */
- total_blocks = (
s->avctx->width * s->avctx->height) / (4 *
4);
+ total_blocks = (
(s->avctx->width + 3) / 4) * ((s->avctx->height + 3) /
4);
/* Process chunk data */
while (stream_ptr < chunk_size) {