From 937703ef1e9e1d125bb27baeccc1e2393f9b9501 Mon Sep 17 00:00:00 2001 From: Mikael Finstad Date: Sun, 24 Jan 2021 16:17:09 +0100 Subject: [PATCH] improve detection of unsupported files fixes #595 --- src/util.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/util.js b/src/util.js index 008b2cce..4bc68e64 100644 --- a/src/util.js +++ b/src/util.js @@ -155,7 +155,8 @@ export function doesPlayerSupportFile(streams) { // Don't check audio formats, assume all is OK if (videoStreams.length === 0) return true; // If we have at least one video that is NOT of the unsupported formats, assume the player will be able to play it natively - return videoStreams.some(s => !['hevc', 'prores'].includes(s.codec_name)); + // https://github.com/mifi/lossless-cut/issues/595 + return videoStreams.some(s => !['hevc', 'prores', 'mpeg4'].includes(s.codec_name)); } export const isMasBuild = window.process.mas;