This commit is contained in:
cvium 2022-01-12 20:10:35 +01:00
parent b9d4cbf3e8
commit 7ba9a24736

View File

@ -26,7 +26,7 @@ public class MatroskaKeyframeExtractor : IKeyframeExtractor
/// <inheritdoc />
public bool TryExtractKeyframes(string filePath, [NotNullWhen(true)] out KeyframeData? keyframeData)
{
if (filePath.AsSpan().EndsWith(".mkv", StringComparison.OrdinalIgnoreCase))
if (!filePath.AsSpan().EndsWith(".mkv", StringComparison.OrdinalIgnoreCase))
{
keyframeData = null;
return false;