X-Git-Url: https://git.nihav.org/?p=nihav-encoder.git;a=blobdiff_plain;f=src%2Fdemux.rs;h=859faf5acad11c99716f1826c2e845103c91bc35;hp=28f564d88134f1e3986854dba1efd56d236b5f28;hb=4dd9047c4ba7e1ee7f1e163e0c551d318497d6db;hpb=206dd66da4041e2c1aedd7a97840cbba2b44957c 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, } }