X-Git-Url: https://git.nihav.org/?p=nihav-encoder.git;a=blobdiff_plain;f=src%2Fnull.rs;h=3e9b813244f6b33d10ee00e9664ab566ff62d359;hp=eceef40874c788c7a81b83d69a0122ba8673bc20;hb=86c54d88ca20815841fb90764d7854e5746ce7b4;hpb=935215063aed6eb588d0041b677eab6af53f58cd diff --git a/src/null.rs b/src/null.rs index eceef40..3e9b813 100644 --- a/src/null.rs +++ b/src/null.rs @@ -23,7 +23,7 @@ impl NAEncoder for NullEncoder { NACodecTypeInfo::None => StreamType::Data, }; let info = NACodecInfo::new("null", encinfo.format, None); - let mut stream = NAStream::new(stype, stream_id, info, encinfo.tb_num, encinfo.tb_den); + let mut stream = NAStream::new(stype, stream_id, info, encinfo.tb_num, encinfo.tb_den, 0); stream.set_num(stream_id as usize); let stream = stream.into_ref(); self.stream = Some(stream.clone()); @@ -54,7 +54,7 @@ fn get_encoder() -> Box { Box::new(NullEncoder::new()) } -pub const NULL_ENCODER: EncoderInfo = EncoderInfo { name: "null", get_encoder: get_encoder }; +pub const NULL_ENCODER: EncoderInfo = EncoderInfo { name: "null", get_encoder }; struct NullMuxer<'a> { bw: PhantomData<&'a mut ByteWriter<'a>>,