X-Git-Url: https://git.nihav.org/?p=nihav.git;a=blobdiff_plain;f=nihav-commonfmt%2Fsrc%2Fcodecs%2Fcinepakenc.rs;h=c6af8f61cdd9f71e55ef72a0e1cedf215d10ebc1;hp=604bc87400e8386f7b83bf5223c3cbb4e0d38bb8;hb=405cec9eed5d7f58440ec8495f5cbc1f5c6fee40;hpb=f638a5b1b3241b3433689983aca22d9e6518a64f diff --git a/nihav-commonfmt/src/codecs/cinepakenc.rs b/nihav-commonfmt/src/codecs/cinepakenc.rs index 604bc87..c6af8f6 100644 --- a/nihav-commonfmt/src/codecs/cinepakenc.rs +++ b/nihav-commonfmt/src/codecs/cinepakenc.rs @@ -1053,8 +1053,8 @@ impl NAOptionHandler for CinepakEncoder { } }, "quant_mode" => { - if let NAValue::String(ref str) = option.value { - match str.as_str() { + if let NAValue::String(ref strval) = option.value { + match strval.as_str() { "elbg" => self.qmode = QuantMode::ELBG, "hybrid" => self.qmode = QuantMode::Hybrid, "mediancut" => self.qmode = QuantMode::MedianCut,