From 3cb8de9395127406b19c43fce7994dc182365ce0 Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Sat, 21 Mar 2026 15:17:43 +0100 Subject: [PATCH] mpeg4asp: quantiser-related fixes --- nihav-mpeg/src/codecs/mpeg4asp/bitstream.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nihav-mpeg/src/codecs/mpeg4asp/bitstream.rs b/nihav-mpeg/src/codecs/mpeg4asp/bitstream.rs index a180a42..534d6eb 100644 --- a/nihav-mpeg/src/codecs/mpeg4asp/bitstream.rs +++ b/nihav-mpeg/src/codecs/mpeg4asp/bitstream.rs @@ -845,9 +845,10 @@ unimplemented!(); /* ignore alpha part for gray shape */ let quant = self.quant as i8 + dquant; - validate!((0..64).contains(&quant)); + validate!((1..32).contains(&quant)); let quant = quant as u8; mb.quant = quant; + self.quant = quant; let mut cbp = mb.cbp; if cbp != 0 || mb.mb_type == MBType::Intra { -- 2.39.5