• Andreas Rheinhardt's avatar
    avformat/matroskaenc: Use random TrackUID · 45314ff2
    Andreas Rheinhardt authored
    Up until now, the TrackUID of a Matroska track which is supposed to be
    random was not random at all: It always coincided with the TrackNumber
    which is usually the 1-based index of the corresponding stream in the
    array of AVStreams. This has been changed: It is now set via an AVLFG
    if AVFMT_FLAG_BITEXACT is not set. Otherwise it is set like it is set
    now (the only change happens if an explicit track number has been
    chosen via dash_track_number, because the system used in the normal
    situation is now used, too). In particular, no FATE tests need to be
    updated.
    
    This also fixes a bug in case the dash_track_number option was used:
    In this case the TrackUID was set to the provided number, but the tags
    were written with a TagTrackUID simply based upon the index, so that
    the tags didn't apply to the track they ought to apply to.
    Signed-off-by: 's avatarAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
    45314ff2
Name
Last commit
Last update
compat Loading commit data...
doc Loading commit data...
ffbuild Loading commit data...
fftools Loading commit data...
libavcodec Loading commit data...
libavdevice Loading commit data...
libavfilter Loading commit data...
libavformat Loading commit data...
libavresample Loading commit data...
libavutil Loading commit data...
libpostproc Loading commit data...
libswresample Loading commit data...
libswscale Loading commit data...
presets Loading commit data...
tests Loading commit data...
tools Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.mailmap Loading commit data...
.travis.yml Loading commit data...
CONTRIBUTING.md Loading commit data...
COPYING.GPLv2 Loading commit data...
COPYING.GPLv3 Loading commit data...
COPYING.LGPLv2.1 Loading commit data...
COPYING.LGPLv3 Loading commit data...
CREDITS Loading commit data...
Changelog Loading commit data...
INSTALL.md Loading commit data...
LICENSE.md Loading commit data...
MAINTAINERS Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
RELEASE Loading commit data...
configure Loading commit data...