projects
/
nihav-tool.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
9ba5cad
)
report raw stream duration
author
Kostya Shishkov
<kostya.shishkov@gmail.com>
Mon, 22 Nov 2021 17:37:35 +0000
(18:37 +0100)
committer
Kostya Shishkov
<kostya.shishkov@gmail.com>
Mon, 22 Nov 2021 17:37:35 +0000
(18:37 +0100)
src/demux.rs
patch
|
blob
|
blame
|
history
diff --git
a/src/demux.rs
b/src/demux.rs
index 8a58f2d5ec582eadb1db2db3535a9f9f8d163a86..78743bead1d75ec6c247f71b39355f587c82cbb2 100644
(file)
--- 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(),
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,
}
}
_ => 0,
}
}