X-Git-Url: https://git.nihav.org/?a=blobdiff_plain;f=nihav-core%2Fsrc%2Fcodecs%2Fmod.rs;h=8594b40905e0cd90189ffeba8574ccb97cf98009;hb=44fe5056fa05c27af8d3b77291e9c000316bd292;hp=c6ee95ec71a844043d449af5b3e6ade48e7dc5ba;hpb=0975e7e77fc0b337dad578071a6deca6aa2b4697;p=nihav.git diff --git a/nihav-core/src/codecs/mod.rs b/nihav-core/src/codecs/mod.rs index c6ee95e..8594b40 100644 --- a/nihav-core/src/codecs/mod.rs +++ b/nihav-core/src/codecs/mod.rs @@ -102,7 +102,7 @@ pub struct DecoderInfo { /// Structure for registering known decoders. /// -/// It is supposed to be filled using `register_all_codecs()` from some decoders crate and then it can be used to create decoders for the requested codecs. +/// It is supposed to be filled using `register_all_decoders()` from some decoders crate and then it can be used to create decoders for the requested codecs. #[derive(Default)] pub struct RegisteredDecoders { decs: Vec, @@ -263,7 +263,7 @@ impl Default for EncodeParameters { /// while let Some(frame) = queue.get_frame() { /// // convert to the format encoder expects if required /// encoder.encode(frame)?; -/// while let Some(enc_pkt) = encoder.get_packet()? { +/// while let Ok(enc_pkt) = encoder.get_packet()? { /// // send encoded packet to a muxer for example /// } /// } @@ -319,7 +319,7 @@ pub struct EncoderInfo { /// Structure for registering known encoders. /// -/// It is supposed to be filled using `register_all_codecs()` from some encoders crate and then it can be used to create encoders for the requested codecs. +/// It is supposed to be filled using `register_all_decoders()` from some encoders crate and then it can be used to create encoders for the requested codecs. #[derive(Default)] pub struct RegisteredEncoders { encs: Vec,