Fix bink decoder for files with 24px width.

Fixes ticket #962.
This commit is contained in:
Bastien Bouclet 2012-03-06 20:16:20 +01:00 committed by Carl Eugen Hoyos
parent 0f13cc732b
commit b521f11349
1 changed files with 1 additions and 1 deletions

View File

@ -148,7 +148,7 @@ static void init_lengths(BinkContext *c, int width, int bw)
{
c->bundle[BINK_SRC_BLOCK_TYPES].len = av_log2((width >> 3) + 511) + 1;
c->bundle[BINK_SRC_SUB_BLOCK_TYPES].len = av_log2((width >> 4) + 511) + 1;
c->bundle[BINK_SRC_SUB_BLOCK_TYPES].len = av_log2(((width + 7) >> 4) + 511) + 1;
c->bundle[BINK_SRC_COLORS].len = av_log2(bw*64 + 511) + 1;