[FFmpeg-devel] [PATCH] bink: no need to increase width twice

Paul B Mahol onemda at gmail.com
Wed Mar 21 02:41:50 CET 2012


Signed-off-by: Paul B Mahol <onemda at gmail.com>
---
 libavcodec/bink.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavcodec/bink.c b/libavcodec/bink.c
index c8daab3..4ca96e5 100644
--- a/libavcodec/bink.c
+++ b/libavcodec/bink.c
@@ -150,7 +150,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 + 7) >> 4) + 511) + 1;
+    c->bundle[BINK_SRC_SUB_BLOCK_TYPES].len = av_log2((width >> 4) + 511) + 1;
 
     c->bundle[BINK_SRC_COLORS].len = av_log2(bw*64 + 511) + 1;
 
-- 
1.7.7



More information about the ffmpeg-devel mailing list