Dispose of ffmpeg if terminated

This commit is contained in:
TwistedUmbrellaX 2024-06-14 03:30:30 -04:00
parent 63b27f0292
commit b101d8f8a4

View File

@ -452,7 +452,10 @@ public static class FFmpegWrapper
}
while (bytesRead > 0);
ffmpeg.WaitForExit(timeout);
if (ffmpeg.WaitForExit(timeout))
{
ffmpeg.Dispose();
}
var output = ms.ToArray();