projects
/
nihav-encoder.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix or silence clippy warnings
[nihav-encoder.git]
/
src
/
null.rs
diff --git
a/src/null.rs
b/src/null.rs
index eceef40874c788c7a81b83d69a0122ba8673bc20..3e9b813244f6b33d10ee00e9664ab566ff62d359 100644
(file)
--- 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);
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());
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<dyn NAEncoder + Send> {
Box::new(NullEncoder::new())
}
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>>,
struct NullMuxer<'a> {
bw: PhantomData<&'a mut ByteWriter<'a>>,