Fix linting errors
This commit is contained in:
@ -702,10 +702,10 @@ impl From<AVPixelFormat> for Pixel {
|
||||
}
|
||||
}
|
||||
|
||||
impl Into<AVPixelFormat> for Pixel {
|
||||
impl From<Pixel> for AVPixelFormat {
|
||||
#[inline]
|
||||
fn into(self) -> AVPixelFormat {
|
||||
match self {
|
||||
fn from(value: Pixel) -> AVPixelFormat {
|
||||
match value {
|
||||
Pixel::None => AV_PIX_FMT_NONE,
|
||||
|
||||
Pixel::YUV420P => AV_PIX_FMT_YUV420P,
|
||||
|
@ -101,10 +101,10 @@ impl From<&'static str> for Sample {
|
||||
}
|
||||
}
|
||||
|
||||
impl Into<AVSampleFormat> for Sample {
|
||||
impl From<Sample> for AVSampleFormat {
|
||||
#[inline]
|
||||
fn into(self) -> AVSampleFormat {
|
||||
match self {
|
||||
fn from(value: Sample) -> AVSampleFormat {
|
||||
match value {
|
||||
Sample::None => AV_SAMPLE_FMT_NONE,
|
||||
|
||||
Sample::U8(Type::Packed) => AV_SAMPLE_FMT_U8,
|
||||
|
Reference in New Issue
Block a user