• Andreas Rheinhardt's avatar
    avformat/matroskaenc: Remove unnecessary avio_tell(), avio_seek() · 0fc150f0
    Andreas Rheinhardt authored
    avio_close_dyn_buf() has a bug: When the write pointer does not point to
    the end of the written data when calling it (i.e. when one has performed
    a seek back to update already written data), it would not add padding to
    the end of the buffer, but to the current position, overwriting other
    data; furthermore the reported size would be wrong (off by the amount of
    data it has overwritten with padding).
    
    In order not to run into this when updating already written elements or
    elements for which size has only been reserved, the Matroska muxer would
    first record the current position of the dynamic buffer, then seek to
    the desired position, perform the update and seek back to the earlier
    position.
    
    But now that end_ebml_master_crc32() does not make use of
    avio_close_dyn_buf() any more, this is no longer necessary.
    Signed-off-by: 's avatarAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
    0fc150f0
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...