introduce a way for encoder to manifest its capabilities
[nihav.git] / nihav-commonfmt / src / codecs / pcm.rs
index 3bc67c007f04461ac2262c6504ba949d661d49fc..b2dd8174879e75bc9f518fb5cca2e1255d5f8291 100644 (file)
@@ -200,6 +200,7 @@ impl NAEncoder for PCMEncoder {
             }
         }
     }
+    fn get_capabilities(&self) -> u64 { ENC_CAPS_CBR }
     fn init(&mut self, stream_id: u32, encinfo: EncodeParameters) -> EncoderResult<NAStreamRef> {
         match encinfo.format {
             NACodecTypeInfo::None => Err(EncoderError::FormatError),