vcr1: add sanity checks
authorAnton Khirnov <anton@khirnov.net>
Sat, 24 Aug 2013 19:30:46 +0000 (21:30 +0200)
committerLuca Barbato <lu_zero@gentoo.org>
Sat, 7 Sep 2013 08:10:09 +0000 (10:10 +0200)
commit251b4655be73f4b5e86d3e81d61abb5787b1262b
tree246e40c6d8e3183001e2dde85eefbb82f6aa7392
parent26605efed72e70edabc999e819961f9628450212
vcr1: add sanity checks

Fixes invalid reads with corrupted files.

Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
(cherry picked from commit 8aba7968dd604aae91ee42cbce0be3dad7dceb30)
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
libavcodec/vcr1.c