• erankor's avatar
    qt-faststart - stco offset bug fix · dc16c9dd
    erankor authored
    when the last offsets in the stco atom are close to 4GB, the addition of
    the moov atom size can overflow, causing corruption near the end of the
    mp4 file.
    this patch upgrades all stco atoms to co64 when such an edge case is
    detected. in order to accomplish this, the implementation was changed to
    walk the atom tree, instead of searching for the strings 'stco'/'co64'.
    this was required since when an stco atom is changed to co64, its size
    changes, and the sizes of all containing atoms (moov, trak, etc.) have
    to be updated as well.
    Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
    dc16c9dd
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...
.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...