vcr1: add sanity checks
authorAnton Khirnov <anton@khirnov.net>
Sat, 24 Aug 2013 19:30:46 +0000 (21:30 +0200)
committerAnton Khirnov <anton@khirnov.net>
Mon, 2 Sep 2013 17:27:33 +0000 (19:27 +0200)
commit8aba7968dd604aae91ee42cbce0be3dad7dceb30
tree11079c12fe95134435d389721d3a870db37d509f
parent21ffd4101167ef4dcc271132f950e0f9ec58a7bd
vcr1: add sanity checks

Fixes invalid reads with corrupted files.

Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
libavcodec/vcr1.c