Zach Isbach 3 лет назад
Родитель
Сommit
7420bd04a1
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      encode.pl

+ 2 - 2
encode.pl

@@ -379,8 +379,7 @@ foreach my $title (keys(%titles)) {
 
 	# Include subtitles if available
 	if (scalar(@subs)) {
-		# Sorted, to keep the original order
-		push(@args, sort(@subs));
+		push(@args, @subs);
 	}
 
 	# Include audio unless specifically excluded
@@ -494,6 +493,7 @@ sub subOptions($) {
 	if (scalar(@keep) < 1) {
 		return '';
 	}
+	@keep = sort { $a <=> $b } @keep;
 	return ('--subtitle', join(',', @keep));
 }