[FFmpeg-cvslog] Fix bink decoder for files with 24px width.
Bastien Bouclet
git at videolan.org
Tue Mar 6 20:21:13 CET 2012
ffmpeg | branch: master | Bastien Bouclet <bgkweb at gmail.com> | Tue Mar 6 20:16:20 2012 +0100| [b521f113493fb79fbaf26da669008ec7cdae7fbb] | committer: Carl Eugen Hoyos
Fix bink decoder for files with 24px width.
Fixes ticket #962.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b521f113493fb79fbaf26da669008ec7cdae7fbb
---
libavcodec/bink.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libavcodec/bink.c b/libavcodec/bink.c
index c501688..7df5871 100644
--- a/libavcodec/bink.c
+++ b/libavcodec/bink.c
@@ -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;
More information about the ffmpeg-cvslog
mailing list