Skip to main content

validate_bitrate

Function validate_bitrate 

Source
pub const fn validate_bitrate(codec_type: CodecType, bitrate: u32) -> Result<()>
Expand description

Validate bitrate for a specific codec

§Errors

Returns an error when bitrate is outside the codec’s supported range.