demux_mkv: make matroska.pl script output deterministic

Work around the randomized Perl hashtables by sorting the elements.

Fixes #1673.
This commit is contained in:
wm4 2015-03-11 22:17:23 +01:00
parent e9841630ad
commit 7e9c441d41
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ sub generate_c_header {
# Output a counter variable for each element
# (presence/absence for scalars, item count for arrays)
for my $subel (values %{$el->{subelements}}) {
for my $subel (sort values %{$el->{subelements}}) {
print " int n_$subel->{fieldname};\n"
}
print "};\n";