aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorMike Melanson <mike@multimedia.cx>2004-05-26 02:42:41 +0000
committerMike Melanson <mike@multimedia.cx>2004-05-26 02:42:41 +0000
commit8b58ed6384df471cd58fd0ea1ad6a6acdde6b787 (patch)
tree63d6e9f738c080b801c12d7c5ed64325d8413c4b /libavcodec
parent9e9080b6f0eb441fabfd6fc637dfee4e67b06673 (diff)
downloadffmpeg-8b58ed6384df471cd58fd0ea1ad6a6acdde6b787.tar.gz
rpza resolution fix, courtesy of Todd Kirby (doubleshot at pacbell.net)
Originally committed as revision 3159 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/rpza.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/rpza.c b/libavcodec/rpza.c
index 1c429f6244..2be26346a2 100644
--- 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) {