spatial_decomposition_count != 5 bugfix

Originally committed as revision 10451 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Michael Niedermayer 2007-09-09 12:24:45 +00:00
parent fa731ccd4e
commit 61806e9fa7
1 changed files with 1 additions and 1 deletions

View File

@ -4405,8 +4405,8 @@ static int decode_init(AVCodecContext *avctx)
common_init(avctx);
block_size = MB_SIZE >> s->block_max_depth;
slice_buffer_init(&s->sb, s->plane[0].height, (block_size) + (s->spatial_decomposition_count * (s->spatial_decomposition_count + 3)) + 1, s->plane[0].width, s->spatial_idwt_buffer);
slice_buffer_init(&s->sb, s->plane[0].height, (block_size) + (s->spatial_decomposition_count * 8) + 1, s->plane[0].width, s->spatial_idwt_buffer);
return 0;
}