commonfmt: fix or silence clippy warnings
[nihav.git] / nihav-commonfmt / src / codecs / ts102366.rs
index 4f270cc56ad1323df0f31d45f92baabd8d7f56a3..ab0e84cd821b37ede616360c4a3a86d18b921a83 100644 (file)
@@ -831,6 +831,7 @@ impl AudioBlock {
             bap_buf_fill:   [0; 3],
         }
     }
+    #[allow(clippy::cyclomatic_complexity)]
     fn read(&mut self, br: &mut BitReader, bsi: &BSI, fscod: usize, blk_no: usize) -> DecoderResult<bool> {
         let channels = bsi.acmod.get_num_channels();
         let is_stereo = bsi.acmod == ACMode::Stereo;
@@ -1240,6 +1241,12 @@ impl NADecoder for AudioDecoder {
     }
 }
 
+impl NAOptionHandler for AudioDecoder {
+    fn get_supported_options(&self) -> &[NAOptionDefinition] { &[] }
+    fn set_options(&mut self, _options: &[NAOption]) { }
+    fn query_option_value(&self, _name: &str) -> Option<NAValue> { None }
+}
+
 pub fn get_decoder() -> Box<dyn NADecoder + Send> {
     Box::new(AudioDecoder::new())
 }