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:
parent
e9841630ad
commit
7e9c441d41
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user