From adc0ddfeb4aeb0dba74c78edebcd58272e1c848f 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 15:12:53 +0300 Subject: [PATCH] S4: matroska codec_id matches on media alone; the kind != 0 filter was redundant (kind 0 already maps to no media) --- crates/ec-matroska/src/demux.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/ec-matroska/src/demux.rs b/crates/ec-matroska/src/demux.rs index 0c336069..bce4e5a9 100644 --- a/crates/ec-matroska/src/demux.rs +++ b/crates/ec-matroska/src/demux.rs @@ -1385,7 +1385,7 @@ pub(crate) fn parse_tracks( // time base and nothing here reintroduces a float clock. let step = default_duration.map(|ns| (ns / scale_ns.max(1)).max(1) as i64); let depth = u32::try_from(bits).unwrap_or(u32::MAX); - let codec_id = match media.filter(|_| kind != 0) { + let codec_id = match media { Some(_) => codec_of(&codec, depth)? .or_else(|| video_codec_from_private(&codec, private.as_deref())), None => None,