From 1fbaecad96b8bb1bfcd5ba10351c0d3d19c973d6 Mon Sep 17 00:00:00 2001 From: Bastien Bouclet Date: Sat, 17 Sep 2011 23:42:52 +0200 Subject: [PATCH] VIDEO: Fix Bink bundle count lenghts to be computed as ffmpeg does. Fixes several movies in Myst 3. --- video/bink_decoder.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/video/bink_decoder.cpp b/video/bink_decoder.cpp index dc009b78c6f..7b64a5fe3bd 100644 --- a/video/bink_decoder.cpp +++ b/video/bink_decoder.cpp @@ -706,13 +706,13 @@ void BinkDecoder::initBundles() { _bundles[kSourceBlockTypes ].countLengths[i] = Common::intLog2((width >> 3) + 511) + 1; _bundles[kSourceSubBlockTypes].countLengths[i] = Common::intLog2((width >> 4) + 511) + 1; - _bundles[kSourceColors ].countLengths[i] = Common::intLog2((width >> 3)*64 + 511) + 1; + _bundles[kSourceColors ].countLengths[i] = Common::intLog2((cbw[i] )*64 + 511) + 1; _bundles[kSourceIntraDC ].countLengths[i] = Common::intLog2((width >> 3) + 511) + 1; _bundles[kSourceInterDC ].countLengths[i] = Common::intLog2((width >> 3) + 511) + 1; _bundles[kSourceXOff ].countLengths[i] = Common::intLog2((width >> 3) + 511) + 1; _bundles[kSourceYOff ].countLengths[i] = Common::intLog2((width >> 3) + 511) + 1; _bundles[kSourcePattern ].countLengths[i] = Common::intLog2((cbw[i] << 3) + 511) + 1; - _bundles[kSourceRun ].countLengths[i] = Common::intLog2((width >> 3)*48 + 511) + 1; + _bundles[kSourceRun ].countLengths[i] = Common::intLog2((cbw[i] )*48 + 511) + 1; } }