From: Kostya Shishkov Date: Mon, 22 Nov 2021 17:37:35 +0000 (+0100) Subject: report raw stream duration X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=1c5de8c5a8b86e254e9941b49d476a861abb7d64;p=nihav-tool.git report raw stream duration --- 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, } }