movdec: Check count of stts/ctts elements instead of just the pointer.
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 29 May 2012 17:28:09 +0000 (19:28 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 6 Jun 2012 22:55:23 +0000 (00:55 +0200)
commite0f0486c7fb1ebca86c1cfc3f24d78a62907f630
tree1339780aa9fc6d756071f6ff7e99529245905439
parent56e987d2cd75f9e2ca77c08bb59449a11e58a53a
movdec: Check count of stts/ctts elements instead of just the pointer.

Fixes overreading the array

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 5880d788734d9c4e2dc53c6cdec343ee978d3a3f)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/mov.c