• Andreas Rheinhardt's avatar
    avformat/matroskaenc: Only write Cues at the front if space has been reserved · a54c94d9
    Andreas Rheinhardt authored
    If the AVIOContext for output was unseekable when writing the header,
    no space for Cues would be reserved even if the reserve_index_space
    option was used (because it is reasonable to expect that one can't seek
    back to the beginning to write the Cues anyway). But if the AVIOContext
    was seekable when writing the trailer, it was presumed that space for
    the Cues had been reserved when the reserve_index_space option indicated
    so even when it was not. As a result, the beginning of the file would be
    overwritten.
    
    This commit fixes this: If the reserve_index_space option had been used
    and no space has been reserved in advance because of unseekability when
    writing the header, then no attempt to write Cues will be performed
    when writing the trailer; after all, writing them at the front is
    impossible and writing them at the end is probably undesired.
    Signed-off-by: 's avatarAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
    a54c94d9
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...