From 4468b7858cdf58f8e432c4ffab996769d1c58e6b Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Wed, 23 Sep 2026 20:26:27 +0200 Subject: [PATCH] videoplayer: report stream pixel format if possible --- videoplayer/src/main.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/videoplayer/src/main.rs b/videoplayer/src/main.rs index d3f787b..6e8f885 100644 --- a/videoplayer/src/main.rs +++ b/videoplayer/src/main.rs @@ -222,6 +222,10 @@ fn format_stream_info(num: usize, stream: &NAStream) -> String { match info.get_properties() { NACodecTypeInfo::Video(vinfo) => { ret += format!("{}x{} ", vinfo.width, vinfo.height).as_str(); + if let Some(fmt) = vinfo.format.to_short_string() { + ret += fmt.as_str(); + ret.push(' '); + } }, NACodecTypeInfo::Audio(ainfo) => { ret += format!("{} Hz {} ch", ainfo.sample_rate, ainfo.channels).as_str(); -- 2.39.5