diff options
author | Kostya Shishkov <kostya.shishkov@gmail.com> | 2023-03-14 11:11:31 +0100 |
---|---|---|
committer | Kostya Shishkov <kostya.shishkov@gmail.com> | 2023-03-14 11:11:31 +0100 |
commit | 2757a0289c980aeba002609c777815b51ace8e56 (patch) | |
tree | 0872e7aa66fb001aa034b44f16ae1dcdfec3293f /nihav-realmedia/src/codecs | |
parent | 5f9bf7648f667952b787c77afde07d23ac7c01de (diff) | |
download | nihav-2757a0289c980aeba002609c777815b51ace8e56.tar.gz |
introduce a way for encoder to manifest its capabilities
Diffstat (limited to 'nihav-realmedia/src/codecs')
-rw-r--r-- | nihav-realmedia/src/codecs/cookenc.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/nihav-realmedia/src/codecs/cookenc.rs b/nihav-realmedia/src/codecs/cookenc.rs index 70f471b..3b9e3c4 100644 --- a/nihav-realmedia/src/codecs/cookenc.rs +++ b/nihav-realmedia/src/codecs/cookenc.rs @@ -768,6 +768,7 @@ impl NAEncoder for CookEncoder { } } } + 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), |