Skip to content
This repository was archived by the owner on Sep 14, 2024. It is now read-only.

Commit 43fb869

Browse files
committed
Don't sort complexity list
1 parent a166774 commit 43fb869

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

Av1ador/Function.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ public static string Size_unit(double size)
300300
return size.ToString() + unit;
301301
}
302302

303-
public static List<string> Concat(List<string>[] list)
303+
public static List<string> Concat(List<string>[] list, bool sort = true)
304304
{
305305
Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture;
306306
var concatenated = list[0];
@@ -311,6 +311,8 @@ public static List<string> Concat(List<string>[] list)
311311
else
312312
concatenated = concatenated.Concat(list[i]).ToList();
313313
}
314+
if (!sort)
315+
return concatenated;
314316
try
315317
{
316318
List<double> result = concatenated.Select(x => double.Parse(x)).ToList();

Av1ador/Segment.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ public void Start_encode(string dir, Video v, bool audio, double delay = 0, int
395395
Splits.Add(to.ToString());
396396
System.IO.File.WriteAllLines(Name + "\\segments.txt", Splits.ToArray());
397397
if (vbr)
398-
System.IO.File.WriteAllLines(Name + "\\complexity.txt", Func.Concat(scenes_complex).ToArray());
398+
System.IO.File.WriteAllLines(Name + "\\complexity.txt", Func.Concat(scenes_complex, false).ToArray());
399399

400400
Begin();
401401
}

0 commit comments

Comments
 (0)