Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
Remove incorrect mappings in ffmpeg_sample_format_for
Richie McIlroy283e8ef1f595
diff --git a/crates/media-info/src/lib.rs b/crates/media-info/src/lib.rsindex 2ab8b6950..5b1e55d63 100644--- a/crates/media-info/src/lib.rs+++ b/crates/media-info/src/lib.rs@@ -317,14 +317,10 @@ impl VideoInfo {pub fn ffmpeg_sample_format_for(sample_format: SampleFormat) -> Option<Sample> {match sample_format {- SampleFormat::I8 => Some(Sample::U8(Type::Planar)),SampleFormat::U8 => Some(Sample::U8(Type::Planar)),SampleFormat::I16 => Some(Sample::I16(Type::Planar)),- SampleFormat::U16 => Some(Sample::I16(Type::Planar)),SampleFormat::I32 => Some(Sample::I32(Type::Planar)),- SampleFormat::U32 => Some(Sample::I32(Type::Planar)),SampleFormat::I64 => Some(Sample::I64(Type::Planar)),- SampleFormat::U64 => Some(Sample::I64(Type::Planar)),SampleFormat::F32 => Some(Sample::F32(Type::Planar)),SampleFormat::F64 => Some(Sample::F64(Type::Planar)),_ => None,