diff options
author | Kostya Shishkov <kostya.shishkov@gmail.com> | 2021-11-22 18:37:35 +0100 |
---|---|---|
committer | Kostya Shishkov <kostya.shishkov@gmail.com> | 2021-11-22 18:37:35 +0100 |
commit | 1c5de8c5a8b86e254e9941b49d476a861abb7d64 (patch) | |
tree | 3fb513f9ae059385d73ca7299070eff2e27cfa1f | |
parent | 9ba5cad53d7bdde5c1fbbcf33bcb554a3bfa0b9d (diff) | |
download | nihav-tool-1c5de8c5a8b86e254e9941b49d476a861abb7d64.tar.gz |
report raw stream duration
-rw-r--r-- | src/demux.rs | 3 |
1 files changed, 3 insertions, 0 deletions
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, } } |