truemotion1: check the header size
authorAnton Khirnov <anton@khirnov.net>
Thu, 28 Nov 2013 09:54:35 +0000 (10:54 +0100)
committerReinhard Tartler <siretart@tauware.de>
Sat, 1 Mar 2014 04:07:40 +0000 (23:07 -0500)
commitde0e442e9d6754ae1ad56a8372f45f6aa5e51012
tree9e7480b3f800682974717e177151a1c3c93faf20
parent43aa7eb38efc33f193f51d1d239dbfe12663e537
truemotion1: check the header size

Fixes invalid reads.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC:libav-stable@libav.org
(cherry picked from commit 2240e2078d53d3cfce8ff1dda64e58fa72038602)
(cherry picked from commit 76b40a9bf93e387d98aa7dc02ec7a8d13f51722f)
libavcodec/truemotion1.c