• 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
..
.gitignore Loading commit data...
Makefile Loading commit data...
aviocat.c Loading commit data...
bisect-create Loading commit data...
bookmarklets.html Loading commit data...
cl2c Loading commit data...
clean-diff Loading commit data...
coverity.c Loading commit data...
crypto_bench.c Loading commit data...
cws2fws.c Loading commit data...
dvd2concat Loading commit data...
enum_options.c Loading commit data...
ffescape.c Loading commit data...
ffeval.c Loading commit data...
ffhash.c Loading commit data...
fourcc2pixfmt.c Loading commit data...
gen-rc Loading commit data...
graph2dot.c Loading commit data...
ismindex.c Loading commit data...
libav-merge-next-commit Loading commit data...
loudnorm.rb Loading commit data...
make_chlayout_test Loading commit data...
missing_codec_desc Loading commit data...
murge Loading commit data...
normalize.py Loading commit data...
patcheck Loading commit data...
pktdumper.c Loading commit data...
plotframes Loading commit data...
probetest.c Loading commit data...
qt-faststart.c Loading commit data...
seek_print.c Loading commit data...
sidxindex.c Loading commit data...
sofa2wavs.c Loading commit data...
target_dec_fuzzer.c Loading commit data...
trasher.c Loading commit data...
uncoded_frame.c Loading commit data...
unwrap-diff Loading commit data...
yuvcmp.c Loading commit data...
zmqsend.c Loading commit data...
zmqshell.py Loading commit data...