• Andreas Rheinhardt's avatar
    avformat/matroskaenc: Make output more deterministic · ccadd00a
    Andreas Rheinhardt authored
    Using random values for TrackUID and FileUID (as happens when the
    AVFMT_FLAG_BITEXACT flag is not set) has the obvious downside of making
    the output indeterministic. This commit mitigates this by writing the
    potentially random values with a fixed size of eight byte, even if their
    actual values would fit into less than eight bytes. This ensures that
    even in non-bitexact mode, the differences between two files generated
    with the same settings are restricted to a few bytes in the header.
    (Namely the SegmentUID, the TrackUIDs (in Tracks as well as when
    referencing them via TagTrackUID), the FileUIDs (in Attachments as
    well as in TagAttachmentUID) as well as the CRC-32 checksums of the
    Info, Tracks, Attachments and Tags level-1-elements.) Without this
    patch, there might be an offset/a size difference between two such
    files.
    
    The FATE-tests had to be updated because the fixed-sized UIDs are also
    used in bitexact mode.
    Signed-off-by: 's avatarAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
    ccadd00a
Name
Last commit
Last update
..
api Loading commit data...
checkasm Loading commit data...
dnn Loading commit data...
fate Loading commit data...
filtergraphs Loading commit data...
ref Loading commit data...
.gitignore Loading commit data...
Makefile Loading commit data...
audiogen.c Loading commit data...
audiomatch.c Loading commit data...
base64.c Loading commit data...
copycooker.sh Loading commit data...
extended.ffconcat Loading commit data...
fate-run.sh Loading commit data...
fate-valgrind.supp Loading commit data...
fate.sh Loading commit data...
md5.sh Loading commit data...
refcmp-metadata.awk Loading commit data...
reference.pnm Loading commit data...
rotozoom.c Loading commit data...
simple1.ffconcat Loading commit data...
simple2.ffconcat Loading commit data...
test.ffmeta Loading commit data...
tiny_psnr.c Loading commit data...
tiny_ssim.c Loading commit data...
utils.c Loading commit data...
videogen.c Loading commit data...