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)
committerMartin Storsjö <martin@martin.st>
Mon, 15 Jul 2013 18:38:58 +0000 (21:38 +0300)
commit31931520df35a6f9606fe8293c8a39e2d1fabedf
tree96f5f3b6abd13ea57bd3da1c53f5040710ff68a0
parent5b4eb243bce10a3e8345401a353749e0414c54ca
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>
libavformat/mov.c