bink: no need to increase width twice
authorPaul B Mahol <onemda@gmail.com>
Wed, 21 Mar 2012 01:41:50 +0000 (01:41 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 21 Mar 2012 03:18:34 +0000 (04:18 +0100)
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/bink.c

index c8daab3..4ca96e5 100644 (file)
@@ -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;