X-Git-Url: https://git.nihav.org/?a=blobdiff_plain;f=src%2Fcodecs%2Fh263%2Fdecoder.rs;fp=src%2Fcodecs%2Fh263%2Fdecoder.rs;h=08b47516b901bc58df4a105c984f31c69a2aae06;hb=43c8b55e9b586d6814b0588516eadf9bd12c9685;hp=f871bbd56173dfeed0c6dfd30669cb3bc8a7ab93;hpb=7348405bb0e9c70c9f9cbf3f13bb7c2b7dd86d5b;p=nihav.git diff --git a/src/codecs/h263/decoder.rs b/src/codecs/h263/decoder.rs index f871bbd..08b4751 100644 --- a/src/codecs/h263/decoder.rs +++ b/src/codecs/h263/decoder.rs @@ -243,6 +243,7 @@ impl H263BaseDecoder { self.pred_coeffs.truncate(0); self.pred_coeffs.resize(self.mb_w * self.mb_h, ZERO_PRED_COEFFS); } + sstate.quant = slice.quant; for mb_y in 0..self.mb_h { for mb_x in 0..self.mb_w { for i in 0..6 { for j in 0..64 { blk[i][j] = 0; } } @@ -256,6 +257,7 @@ impl H263BaseDecoder { } cbpi.reset(self.mb_w); sstate.reset_slice(mb_x, mb_y); + sstate.quant = slice.quant; } } @@ -263,6 +265,7 @@ impl H263BaseDecoder { let cbp = binfo.get_cbp(); cbpi.set_cbp(mb_x, cbp); cbpi.set_q(mb_x, binfo.get_q()); + sstate.quant = binfo.get_q(); if binfo.is_intra() { if save_b_data { self.mv_data.push(BlockMVInfo::Intra);