Mercurial > libavcodec.hg
comparison rpza.c @ 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 | 39ad6cd5d4a6 |
children | f67b63ed036d |
comparison
equal
deleted
inserted
replaced
2032:0817ee1f07e5 | 2033:6852ecebb82a |
---|---|
104 av_log(s->avctx, AV_LOG_ERROR, "MOV chunk size != encoded chunk size; using MOV chunk size\n"); | 104 av_log(s->avctx, AV_LOG_ERROR, "MOV chunk size != encoded chunk size; using MOV chunk size\n"); |
105 | 105 |
106 chunk_size = s->size; | 106 chunk_size = s->size; |
107 | 107 |
108 /* Number of 4x4 blocks in frame. */ | 108 /* Number of 4x4 blocks in frame. */ |
109 total_blocks = (s->avctx->width * s->avctx->height) / (4 * 4); | 109 total_blocks = ((s->avctx->width + 3) / 4) * ((s->avctx->height + 3) / 4); |
110 | 110 |
111 /* Process chunk data */ | 111 /* Process chunk data */ |
112 while (stream_ptr < chunk_size) { | 112 while (stream_ptr < chunk_size) { |
113 opcode = s->buf[stream_ptr++]; /* Get opcode */ | 113 opcode = s->buf[stream_ptr++]; /* Get opcode */ |
114 | 114 |