realmedia/rv3040: update DC quant for inter macroblocks too
authorKostya Shishkov <kostya.shishkov@gmail.com>
Tue, 24 Mar 2020 11:46:36 +0000 (12:46 +0100)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Tue, 24 Mar 2020 11:46:36 +0000 (12:46 +0100)
nihav-realmedia/src/codecs/rv3040.rs

index e24b8af460fb033a042a758c43bbdbab40f61990..8da291b2d507e4facaad37c1b79b9d73dcbceae1 100644 (file)
@@ -1255,6 +1255,7 @@ impl RV34Decoder {
                     sstate.q_dc = bd.quant_dc(true, q);
                     self.decode_mb_intra(&sstate, &imode, &mut buf, &mut br, is_16)?;
                 } else {
+                    sstate.q_dc = bd.quant_dc(false, q);
                     imode.fill_block(0);
                     self.decode_mb_inter(&sstate, &mbh, &mut buf, &mut br, is_16)?;
                 }