aboutsummaryrefslogtreecommitdiff
path: root/stream/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'stream/src/lib.rs')
-rw-r--r--stream/src/lib.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/stream/src/lib.rs b/stream/src/lib.rs
index a6faf54..eb56529 100644
--- a/stream/src/lib.rs
+++ b/stream/src/lib.rs
@@ -136,7 +136,8 @@ async fn stream_info(info: Arc<SMediaInfo>) -> Result<(InternalStreamInfo, Strea
bit_depth: t.audio.as_ref().and_then(|a| a.bit_depth.map(|e| e as u8)),
samplerate: t.audio.as_ref().map(|a| a.sampling_frequency),
channels: t.audio.as_ref().map(|a| a.channels as usize),
- pixel_count: t.video.as_ref().map(|v| v.pixel_width * v.pixel_height),
+ width: t.video.as_ref().map(|v| v.pixel_width),
+ height: t.video.as_ref().map(|v| v.pixel_height),
..Default::default()
});
tracks.push(StreamTrackInfo {