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>
Mon, 28 Oct 2013 13:16:37 +0000 (14:16 +0100)
commitbe8b796f559cece8a0312749e470d47b1653fa23
treedaad39534195e9893a11fabda3819e35ad068154
parent82978539171f32d0e1cf3bb4b452de4c1a920bae
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>
Conflicts:
libavcodec/vcr1.c
libavcodec/vcr1.c