From e18142d2a629d664e03400a0a128b976e13c0159 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Wed, 2 Dec 2026 16:18:24 +0300 Subject: [PATCH] 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 --- crates/ec-h264/src/decoder.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/ec-h264/src/decoder.rs b/crates/ec-h264/src/decoder.rs index 05163272..27f7afd5 100644 --- a/crates/ec-h264/src/decoder.rs +++ b/crates/ec-h264/src/decoder.rs @@ -871,8 +871,8 @@ impl Core { let sps = self.sps_map[pps.sps_id as usize] .clone() .ok_or_else(|| Error::corrupt("PPS refers to an unknown SPS"))?; - let sh = SliceHeader::parse(rbsp, header, &sps, &pps)?; check_supported::(&sps, &pps, slice_type_code, self.wide)?; + let sh = SliceHeader::parse(rbsp, header, &sps, &pps)?; if self.has_picture && !self.cur.complete { let same_picture = self.cur_key == Some(PicKey::of(&sh, header)); // A picture starts again at macroblock 0 once macroblock 0 is