]> git.sesse.net Git - ffmpeg/commit
avformat/mov: See if mfra makes up the difference for an incomplete sidx.
authorDale Curtis <dalecurtis@chromium.org>
Thu, 13 Aug 2020 22:02:02 +0000 (15:02 -0700)
committerDerek Buitenhuis <derek.buitenhuis@gmail.com>
Fri, 28 Aug 2020 14:58:47 +0000 (15:58 +0100)
commit2ff3c466eca66bb8eb32bb41a4ce70fe285e3ea0
treeaae5c6a48066cd7aa692551bd49788840ccf51b6
parentccc7120ee717a837d5cdbe4284ae470fe1fbe461
avformat/mov: See if mfra makes up the difference for an incomplete sidx.

A few popular sites have started generating MP4 files which have a
sidx plus an mfra. The sidx accounts for all size except the mfra,
so the old code did not mark the fragment index as complete.

Instead we can just check if there's an mfra and if its size makes
up the difference we can mark the index as complete.

Bug: https://crbug.com/1107130
Signed-off-by: Dale Curtis <dalecurtis@chromium.org>
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
libavformat/mov.c