add y4m to valid file types

This commit is contained in:
Zen 2021-05-28 21:45:22 +03:00
parent 6dc82db96c
commit 5ee1f0990f

View file

@ -10,7 +10,7 @@ use std::{io::prelude::*, path::PathBuf};
fn match_file_type(input: PathBuf) -> bool {
let extension = input.as_path().extension().unwrap().to_str().unwrap();
if ["mkv", "mp4", "mov", "avi", "flv", "m2ts"]
if ["mkv", "mp4", "mov", "avi", "flv", "m2ts", "y4m"]
.iter()
.any(|&v| input.extension().map_or(false, |u| v == u))
{