From 4dd9047c4ba7e1ee7f1e163e0c551d318497d6db Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Mon, 22 Nov 2021 18:43:03 +0100 Subject: [PATCH] use raw stream duration --- src/demux.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/demux.rs b/src/demux.rs index 28f564d..859faf5 100644 --- a/src/demux.rs +++ b/src/demux.rs @@ -151,6 +151,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.30.2