diff options
author | erankor <eran.kornblau@kaltura.com> | 2018-06-01 09:55:45 +0300 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2018-06-13 21:55:19 +0200 |
commit | dc16c9dd90593ffc3642d4a531b73ae6ea836a97 (patch) | |
tree | 19cf4389afc144acfb336ab2fe38c93be43186ec /fftools/cmdutils.h | |
parent | ee09ffbfd2f744e796d6289523f396d830c025a3 (diff) | |
download | ffmpeg-dc16c9dd90593ffc3642d4a531b73ae6ea836a97.tar.gz |
qt-faststart - stco offset bug fix
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: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'fftools/cmdutils.h')
0 files changed, 0 insertions, 0 deletions