1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-21 22:30:22 +00:00

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

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";