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)
committerSean McGovern <gseanmcg@gmail.com>
Mon, 23 Sep 2013 23:16:04 +0000 (19:16 -0400)
commita593d2e92e1491ec04f315d9e38b001b74dcf0b4
tree7fca4642d9ce0ab18ea4fd3d91e6607f9840de51
parent729143e2d27d5f06e6c4b959f4808a8a5fa7ca25
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