Use webm for streaming test

This commit is contained in:
Malte Rosenbjerg 2020-12-07 21:00:43 +01:00
parent 4c24189f6b
commit d64f2dddeb

View file

@ -18,8 +18,8 @@ public void Probe_TooLongOutput()
[TestMethod]
public async Task Audio_FromStream_Duration()
{
var fileAnalysis = await FFProbe.AnalyseAsync(TestResources.Mp4Video);
await using var inputStream = File.OpenRead(TestResources.Mp4Video);
var fileAnalysis = await FFProbe.AnalyseAsync(TestResources.WebmVideo);
await using var inputStream = File.OpenRead(TestResources.WebmVideo);
var streamAnalysis = await FFProbe.AnalyseAsync(inputStream);
Assert.IsTrue(fileAnalysis.Duration == streamAnalysis.Duration);
}