Mercurial > libavcodec.hg
changeset 2033:6852ecebb82a libavcodec
rpza resolution fix, courtesy of Todd Kirby (doubleshot at pacbell.net)
author | melanson |
---|---|
date | Wed, 26 May 2004 02:42:41 +0000 |
parents | 0817ee1f07e5 |
children | 9629c1180d5f |
files | rpza.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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) {