accept : in addition to . in ffmpeg output parsing

This commit is contained in:
zeromus 2014-06-09 01:47:14 +00:00
parent 3ea6495031
commit e7a956e18a
1 changed files with 3 additions and 1 deletions

View File

@ -22,7 +22,9 @@ namespace BizHawk.Emulation.DiscSystem
return args.Select(s => s.Contains(" ") ? string.Format("\"{0}\"", s) : s).ToArray();
}
static readonly Regex rxHasAudio = new Regex(@"Stream \#(\d*\:\d*)\: Audio", RegexOptions.Compiled);
//note: accepts . or : in the stream stream/substream separator in the stream ID format, since that changed at some point in FFMPEG history
//if someone has a better idea how to make the determination of whether an audio stream is available, I'm all ears
static readonly Regex rxHasAudio = new Regex(@"Stream \#(\d*(\.|\:)\d*)\: Audio", RegexOptions.Compiled);
public AudioQueryResult QueryAudio(string path)
{
var ret = new AudioQueryResult();