]> git.sesse.net Git - ffmpeg/commit
mov: Support fake moov boxes disguised as hoov
authorVittorio Giovara <vittorio.giovara@gmail.com>
Thu, 8 Aug 2019 20:28:26 +0000 (22:28 +0200)
committerDerek Buitenhuis <derek.buitenhuis@gmail.com>
Tue, 7 Apr 2020 12:20:59 +0000 (13:20 +0100)
commita13841b79782eb09222d953e9c7d3cd00fefecf3
treedeae88e3934adbee805c933c152c3ff996aa3933
parent97b526c192add6f252b327245fd9223546867352
mov: Support fake moov boxes disguised as hoov

Some broken apps generate files that have a fake box named 'hoov'
instead of a proper 'moov' one. This is speculation but it seems like
this box contains data to be modified later (eg as file grows in size,
data gets re-written) and its name is supposed to be changed to 'moov'
once it can be used as a 'moov', but for some reason this step is skipped.

Since this is not the first time this happens ('moov' boxes can be found
in 'free' ones) extend the existing hacks to search for the moov in such
boxes and skip the moov_retry since it needs to be found right away.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
libavformat/mov.c