From: Kostya Shishkov Date: Sun, 27 Sep 2020 11:27:45 +0000 (+0200) Subject: add missing dyn keywords X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=73f889bfff486539ebd9cc3b8f6cb8477f49a637;p=nihav-encoder.git add missing dyn keywords --- diff --git a/src/main.rs b/src/main.rs index 6b9086f..0f1109c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -399,7 +399,7 @@ impl Transcoder { } true } - fn apply_decoder_options(&self, dec: &mut NADecoder, str_id: u32) { + fn apply_decoder_options(&self, dec: &mut dyn NADecoder, str_id: u32) { if let Some(str_idx) = self.istr_opts.iter().position(|str| str.id == str_id) { let dec_opts = dec.get_supported_options(); if dec_opts.is_empty() { return; } @@ -603,7 +603,7 @@ println!("stream {} ({}) can't be handled", istr.id, istr.get_info().get_name()) } } -fn encode_frame(dst_id: u32, encoder: &mut Box, cvt: &mut OutputConvert, frm: NAFrameRef) -> bool { +fn encode_frame(dst_id: u32, encoder: &mut Box, cvt: &mut OutputConvert, frm: NAFrameRef) -> bool { let buf = frm.get_buffer(); let cbuf = match cvt { OutputConvert::None => buf,