forge
Explore
Log in

Don't you dare go Hollow

Revert S8 9d32686c: check_supported must run before the full slice header parse; SP/SI headers carry fields the parser does not read, so they surfaced as NeedMore instead of the named refusal

Browse files at this commit

e18142d2a629d664e03400a0a128b976e13c0159Ahmet Kaan GümüşParent: 57a2ea2
crates/ec-h264/src/decoder.rsmodified+1 -1
@@ -871,8 +871,8 @@ impl<S: Sample> Core<S> {
871871 let sps = self.sps_map[pps.sps_id as usize]
872872 .clone()
873873 .ok_or_else(|| Error::corrupt("PPS refers to an unknown SPS"))?;
874- let sh = SliceHeader::parse(rbsp, header, &sps, &pps)?;
875874 check_supported::<S>(&sps, &pps, slice_type_code, self.wide)?;
875+ let sh = SliceHeader::parse(rbsp, header, &sps, &pps)?;
876876 if self.has_picture && !self.cur.complete {
877877 let same_picture = self.cur_key == Some(PicKey::of(&sh, header));
878878 // A picture starts again at macroblock 0 once macroblock 0 is