mirror of
https://github.com/mpv-player/mpv
synced 2025-03-11 08:37:59 +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:
parent
e9841630ad
commit
7e9c441d41
@ -64,7 +64,7 @@ sub generate_c_header {
|
|||||||
|
|
||||||
# Output a counter variable for each element
|
# Output a counter variable for each element
|
||||||
# (presence/absence for scalars, item count for arrays)
|
# (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 " int n_$subel->{fieldname};\n"
|
||||||
}
|
}
|
||||||
print "};\n";
|
print "};\n";
|
||||||
|
Loading…
Reference in New Issue
Block a user