From 1c5de8c5a8b86e254e9941b49d476a861abb7d64 Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Mon, 22 Nov 2021 18:37:35 +0100 Subject: [PATCH] report raw stream duration --- src/demux.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/demux.rs b/src/demux.rs index 8a58f2d..78743be 100644 --- a/src/demux.rs +++ b/src/demux.rs @@ -180,6 +180,9 @@ impl<'a> DemuxerObject<'a> { match *self { DemuxerObject::Normal(ref dmx) => dmx.get_duration(), DemuxerObject::Raw(ref dmx, _, _) => dmx.get_duration(), + DemuxerObject::RawStream(ref ctx) => { + NATimeInfo::ts_to_time(ctx.stream.duration, 1000, ctx.stream.tb_num, ctx.stream.tb_den) + }, _ => 0, } } -- 2.39.5