From 3c38de0f394218a267cf15edda331dc4f2ed61bb Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Wed, 17 Apr 2019 11:54:16 +0200 Subject: [PATCH] bink2: fix intra block DCs --- nihav-rad/src/codecs/bink2.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nihav-rad/src/codecs/bink2.rs b/nihav-rad/src/codecs/bink2.rs index e331d4f..ac81835 100644 --- a/nihav-rad/src/codecs/bink2.rs +++ b/nihav-rad/src/codecs/bink2.rs @@ -1492,7 +1492,7 @@ fn decode_luma_inter(br: &mut BitReader, codes: &Bink2Codes, prev_cbp: u32, q: u let dcs = &dcinfo.dcs; for i in 0..4 { decode_acs_4blocks(br, codes, &mut dst[i], BINK2_QUANT_INTER, q, cbp >> (i * 4))?; - for j in 0..4 { dst[i][j][0] = dcs[i * 4 + j]; } + for j in 0..4 { dst[i][j][0] = dcs[i * 4 + j] * 8; } } Ok(cbp) } @@ -1504,7 +1504,7 @@ fn decode_chroma_inter(br: &mut BitReader, codes: &Bink2Codes, prev_cbp: u32, q: dcinfo.predict_inter(min_dc, max_dc); let dcs = &dcinfo.dcs; decode_acs_4blocks(br, codes, dst, BINK2_QUANT_INTER, q, cbp)?; - for i in 0..4 { dst[i][0] = dcs[i]; } + for i in 0..4 { dst[i][0] = dcs[i] * 8; } Ok(cbp) } -- 2.39.5