From 5ee1f0990f2aa0fe5aca6f4fab63cdd297fb85e4 Mon Sep 17 00:00:00 2001 From: Zen <46526140+master-of-zen@users.noreply.github.com> Date: Fri, 28 May 2021 21:45:22 +0300 Subject: [PATCH] add y4m to valid file types --- av1an-core/src/file_validation.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/av1an-core/src/file_validation.rs b/av1an-core/src/file_validation.rs index 7008bc8..e1fa265 100644 --- a/av1an-core/src/file_validation.rs +++ b/av1an-core/src/file_validation.rs @@ -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)) {