Merge pull request #159 from hey-red/fix-formats

Fix incorrect condition
This commit is contained in:
Malte Rosenbjerg 2021-01-24 00:56:54 +01:00 committed by GitHub
commit 89fdef4766
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,6 +10,7 @@ public class ContainerFormat
public bool DemuxingSupported { get; private set; }
public bool MuxingSupported { get; private set; }
public string Description { get; private set; } = null!;
public string Extension
{
get
@ -36,11 +37,11 @@ internal static bool TryParse(string line, out ContainerFormat fmt)
fmt = new ContainerFormat(match.Groups[3].Value)
{
DemuxingSupported = match.Groups[1].Value == " ",
MuxingSupported = match.Groups[2].Value == " ",
DemuxingSupported = match.Groups[1].Value != " ",
MuxingSupported = match.Groups[2].Value != " ",
Description = match.Groups[4].Value
};
return true;
}
}
}
}