mov: Do not allow updating the time scale after it has been set
authorMartin Storsjö <martin@martin.st>
Mon, 15 Jul 2013 14:13:54 +0000 (17:13 +0300)
committerLuca Barbato <lu_zero@gentoo.org>
Sat, 24 Aug 2013 10:11:57 +0000 (12:11 +0200)
commit7e9debb083d95db6601224ac13a4e7419528d03b
treeae0ee252b3b7e7e7389d0f73d608285daab5f5e3
parent256d61538336973c91c0c0c11c16b30522e12e00
mov: Do not allow updating the time scale after it has been set

The time scale is set in mdhd, and later validated in the
enclosing trak atom once all of its children have been parsed.

A loose mdhd atom outside of a trak atom could update the time
scale of the last stream without any validation.

Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Cc: libav-stable@libav.org
Signed-off-by: Martin Storsjö <martin@martin.st>
(cherry picked from commit 31931520df35a6f9606fe8293c8a39e2d1fabedf)

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
libavformat/mov.c