]> git.nihav.org Git - nihav.git/commitdiff
h264: ignore unknown reserved bits in SPS
authorKostya Shishkov <kostya.shiskov@gmail.com>
Tue, 24 Jun 2025 17:16:51 +0000 (19:16 +0200)
committerKostya Shishkov <kostya.shiskov@gmail.com>
Tue, 24 Jun 2025 17:22:18 +0000 (19:22 +0200)
nihav-itu/src/codecs/h264/sets.rs

index 2d879bdd7b87bc1a682e294a168939a6a3dbdae7..cafc4caf1d2ac6675569c0c1ffb6fc6be2134033 100644 (file)
@@ -58,8 +58,8 @@ pub fn parse_sps(src: &[u8]) -> DecoderResult<SeqParameterSet> {
     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);