Add a comment to the format method to clarify this refers to the video format (#727)

This commit is contained in:
Josh Holmer 2023-03-06 12:39:20 -05:00 committed by GitHub
parent 9da59ad245
commit 4f919bb7fd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -492,6 +492,7 @@ impl Encoder {
} }
} }
/// Get the name of the video format associated with the encoder
pub const fn format(self) -> &'static str { pub const fn format(self) -> &'static str {
match self { match self {
Self::aom | Self::rav1e | Self::svt_av1 => "av1", Self::aom | Self::rav1e | Self::svt_av1 => "av1",