From: Kostya Shishkov Date: Tue, 24 Jun 2025 17:16:51 +0000 (+0200) Subject: h264: ignore unknown reserved bits in SPS X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=647d9d86d01b3fca140a2e996c00adda1627e5b1;p=nihav.git h264: ignore unknown reserved bits in SPS --- diff --git a/nihav-itu/src/codecs/h264/sets.rs b/nihav-itu/src/codecs/h264/sets.rs index 2d879bd..cafc4ca 100644 --- a/nihav-itu/src/codecs/h264/sets.rs +++ b/nihav-itu/src/codecs/h264/sets.rs @@ -58,8 +58,8 @@ pub fn parse_sps(src: &[u8]) -> DecoderResult { sps.constraint_set0 = br.read_bool()?; sps.constraint_set1 = br.read_bool()?; sps.constraint_set2 = br.read_bool()?; - let reserved = br.read(5)?; - validate!(reserved == 0); + let _reserved = br.read(5)?; +// validate!(reserved == 0); sps.level_idc = br.read(8)? as u8; sps.seq_parameter_set_id = br.read_ue()?; sps.high_profile = is_high_profile(sps.profile_idc);