indeo3: switch parsing the header to bytestream2
authorAnton Khirnov <anton@khirnov.net>
Wed, 10 Apr 2013 07:40:20 +0000 (09:40 +0200)
committerReinhard Tartler <siretart@tauware.de>
Wed, 24 Apr 2013 19:01:14 +0000 (21:01 +0200)
commitc579d4283edb87933632d9cf818b4244d1474d23
treeb69a371ef25e670def1c0c9ec846114086c7672d
parent9b2af4d080c7baccd2b175d8f2b95ed653df2361
indeo3: switch parsing the header to bytestream2

Also add an additional sanity check to the alt_quant table.
Fixes invalid reads with corrupted files.

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

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