Clippy fixes

This commit is contained in:
2024-08-30 19:50:09 +01:00
parent 1a1d85b898
commit ab4ff7b035
4 changed files with 7 additions and 7 deletions

View File

@ -50,7 +50,7 @@ impl WebpProcessor {
av_packet_rescale_ts(pkt, (*in_stream).time_base, (*out_stream).time_base);
let dec_ctx = self.decoders.get_mut(&idx).expect("Missing decoder config");
let enc_ctx = self.encoders.get_mut(&out_idx).expect("Missing encoder config");
let enc_ctx = self.encoders.get_mut(out_idx).expect("Missing encoder config");
let ret = avcodec_send_packet(*dec_ctx, pkt);
if ret < 0 {
@ -67,7 +67,7 @@ impl WebpProcessor {
return Err(Error::msg("Frame read error"));
}
let frame_out = match self.scalers.get_mut(&out_idx) {
let frame_out = match self.scalers.get_mut(out_idx) {
Some(sws) => {
av_frame_copy_props(frame_out, frame);
let ret = sws_scale_frame(*sws, frame_out, frame);