mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2025-02-13 16:40:27 +00:00
rpza resolution fix, courtesy of Todd Kirby (doubleshot at pacbell.net)
Originally committed as revision 3159 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
9e9080b6f0
commit
8b58ed6384
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user