indeo3: fix data size check
authorAnton Khirnov <anton@khirnov.net>
Wed, 10 Apr 2013 07:59:36 +0000 (09:59 +0200)
committerReinhard Tartler <siretart@tauware.de>
Thu, 18 Apr 2013 20:01:24 +0000 (22:01 +0200)
commit4c412580fdb689638541790cda0a920d0c13bb7b
treedac25f00a7cd0b4afc56821fd47172e18d0111dc
parent8f558c3e101859aec9adcb4b4b270ae1ef8f88b5
indeo3: fix data size check

The data offsets are relative to the bistream header, which is 16 bytes
after the start of the data.
Fixes invalid reads with corrupted files.

Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC:libav-stable@libav.org
(cherry picked from commit 34e6af9e204ca6bb18d8cf8ec68fe19b0e083e95)

Signed-off-by: Reinhard Tartler <siretart@tauware.de>
libavcodec/indeo3.c