add wildcard branches for matches on enums
This commit is contained in:
@ -742,6 +742,8 @@ impl From<AVPixelFormat> for Pixel {
|
||||
AV_PIX_FMT_RPI4_8 => Pixel::RPI4_8,
|
||||
#[cfg(feature = "rpi")]
|
||||
AV_PIX_FMT_RPI4_10 => Pixel::RPI4_10,
|
||||
|
||||
_ => unimplemented!(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -86,6 +86,8 @@ impl From<AVSampleFormat> for Sample {
|
||||
AV_SAMPLE_FMT_DBLP => Sample::F64(Type::Planar),
|
||||
|
||||
AV_SAMPLE_FMT_NB => Sample::None,
|
||||
|
||||
_ => unimplemented!(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user