make ffmpeg segment numeration the same as vfw has

This commit is contained in:
feos 2018-09-16 18:35:50 +03:00
parent 966dbcab62
commit d1e7fc10fd
1 changed files with 1 additions and 1 deletions

View File

@ -91,7 +91,7 @@ namespace BizHawk.Client.EmuHawk
ffmpeg.StartInfo.FileName = "ffmpeg"; // expecting native version to be in path
#endif
string filename = $"{_baseName}_{_segment,4:D4}{_ext}";
string filename = _baseName + (_segment > 0 ? $"_{_segment}" : "") + _ext;
_ffmpeg.StartInfo.Arguments = string.Format("-y -f nut -i - {1} \"{0}\"", filename, _token.Commandline);
_ffmpeg.StartInfo.CreateNoWindow = true;