diff options
author | wm4 <wm4@nowhere> | 2015-03-11 22:17:23 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-03-11 22:17:23 +0100 |
commit | 7e9c441d41ea0972641d1fb5ffddf2e11e46f23d (patch) | |
tree | 27154805b2437afda5e98784df39f81bdddb858b /TOOLS | |
parent | e9841630ad2962e106ebf6c6d1afd032cbf93b33 (diff) | |
download | mpv-7e9c441d41ea0972641d1fb5ffddf2e11e46f23d.tar.bz2 mpv-7e9c441d41ea0972641d1fb5ffddf2e11e46f23d.tar.xz |
demux_mkv: make matroska.pl script output deterministic
Work around the randomized Perl hashtables by sorting the elements.
Fixes #1673.
Diffstat (limited to 'TOOLS')
-rwxr-xr-x | TOOLS/matroska.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/TOOLS/matroska.pl b/TOOLS/matroska.pl index 28ad1197c5..41e4f6aa81 100755 --- a/TOOLS/matroska.pl +++ b/TOOLS/matroska.pl @@ -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"; |