cinepakenc: replace missed instance of key_int with the constant
authorKostya Shishkov <kostya.shishkov@gmail.com>
Sat, 6 Jun 2020 07:42:41 +0000 (09:42 +0200)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Sat, 6 Jun 2020 10:49:14 +0000 (12:49 +0200)
nihav-commonfmt/src/codecs/cinepakenc.rs

index c05b86d3f5c2ddfd126d9108044aa683a53345fa..f0a28059bcd56e17328dde94c5fd39d3b20715c5 100644 (file)
@@ -1029,7 +1029,7 @@ impl NAOptionHandler for CinepakEncoder {
     }
     fn query_option_value(&self, name: &str) -> Option<NAValue> {
         match name {
     }
     fn query_option_value(&self, name: &str) -> Option<NAValue> {
         match name {
-            "key_int" => Some(NAValue::Int(i64::from(self.key_int))),
+            KEYFRAME_OPTION => Some(NAValue::Int(i64::from(self.key_int))),
             "nstrips" => Some(NAValue::Int(self.nstrips as i64)),
             "quant_mode" => Some(NAValue::String(self.qmode.to_string())),
             _ => None,
             "nstrips" => Some(NAValue::Int(self.nstrips as i64)),
             "quant_mode" => Some(NAValue::String(self.qmode.to_string())),
             _ => None,