Skip to content

Commit e7e4017

Browse files
committed
Fixed the error that volumn can be 0.0 db
1 parent 4125de2 commit e7e4017

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

OKEGui/OKEGui/JobProcessor/Audio/FFmpegVolumeChecker.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,14 @@ public override void ProcessLine(string line, StreamType stream)
2323
{
2424
if (line.Contains("mean_volume"))
2525
{
26+
line = line.Replace(" (0.", " (-0.");
2627
Regex rf = new Regex("mean_volume: (-[0-9]+.[0-9]+) dB");
2728
string[] result = rf.Split(line);
2829
MeanVolume = double.Parse(result[1]);
2930
}
3031
if (line.Contains("max_volume"))
3132
{
33+
line = line.Replace(" (0.", " (-0.");
3234
Regex rf = new Regex("max_volume: (-[0-9]+.[0-9]+) dB");
3335
string[] result = rf.Split(line);
3436
MaxVolume = double.Parse(result[1]);

OKEGui/OKEGui/Properties/AssemblyInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,4 @@
4747
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值,
4848
// 方法是按如下所示使用“*”: :
4949
// [assembly: AssemblyVersion("1.0.*")]
50-
[assembly: AssemblyVersion("4.2.*")]
50+
[assembly: AssemblyVersion("4.5.*")]

0 commit comments

Comments
 (0)