# HG changeset patch # User melanson # Date 1085539361 0 # Node ID 6852ecebb82af3a2eb6f2201447675c63131f5c9 # Parent 0817ee1f07e54c1c9695b5b9b5b26ff654dabf06 rpza resolution fix, courtesy of Todd Kirby (doubleshot at pacbell.net) diff -r 0817ee1f07e5 -r 6852ecebb82a rpza.c --- a/rpza.c Tue May 25 18:17:25 2004 +0000 +++ b/rpza.c Wed May 26 02:42:41 2004 +0000 @@ -106,7 +106,7 @@ 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) {