diff options
author | wm4 <wm4@nowhere> | 2015-03-11 22:17:23 +0100 |
---|---|---|
committer | Diogo Franco (Kovensky) <diogomfranco@gmail.com> | 2015-03-15 20:07:14 +0900 |
commit | b17ccd1c43b999f4027c443a7ff7a95e05536934 (patch) | |
tree | 5ba4c0c59236bb1ec4c92d80460a58983a5666c9 | |
parent | 62d922e4f0d0c165f7edd880924946f660eef85d (diff) | |
download | mpv-b17ccd1c43b999f4027c443a7ff7a95e05536934.tar.bz2 mpv-b17ccd1c43b999f4027c443a7ff7a95e05536934.tar.xz |
demux_mkv: make matroska.pl script output deterministic
Work around the randomized Perl hashtables by sorting the elements.
Fixes #1673.
(cherry picked from commit 7e9c441d41ea0972641d1fb5ffddf2e11e46f23d)
-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"; |