mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
Change some band size calculations in Bink decoder to use width in blocks
instead of real width, this fixes decoding of some Bink files with odd width. Originally committed as revision 26364 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
b0c8b8a69d
commit
03ec42aa1c
@ -119,7 +119,7 @@ static void init_lengths(BinkContext *c, int width, int bw)
|
||||
|
||||
c->bundle[BINK_SRC_SUB_BLOCK_TYPES].len = av_log2((width >> 4) + 511) + 1;
|
||||
|
||||
c->bundle[BINK_SRC_COLORS].len = av_log2((width >> 3)*64 + 511) + 1;
|
||||
c->bundle[BINK_SRC_COLORS].len = av_log2(bw*64 + 511) + 1;
|
||||
|
||||
c->bundle[BINK_SRC_INTRA_DC].len =
|
||||
c->bundle[BINK_SRC_INTER_DC].len =
|
||||
@ -128,7 +128,7 @@ static void init_lengths(BinkContext *c, int width, int bw)
|
||||
|
||||
c->bundle[BINK_SRC_PATTERN].len = av_log2((bw << 3) + 511) + 1;
|
||||
|
||||
c->bundle[BINK_SRC_RUN].len = av_log2((width >> 3)*48 + 511) + 1;
|
||||
c->bundle[BINK_SRC_RUN].len = av_log2(bw*48 + 511) + 1;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user