vc1dec: Do not allow field_mode to change after the first header
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 15 Nov 2012 23:48:15 +0000 (00:48 +0100)
committerMartin Storsjö <martin@martin.st>
Wed, 15 May 2013 09:13:53 +0000 (12:13 +0300)
commit4162fc62b30d5b57910c17e46f2a9319a09cdae0
treee0b1e986b98ed70474759a188d3633a0bac50c79
parentec7d002e55590bf9e2c2745065ec3463364a5273
vc1dec: Do not allow field_mode to change after the first header

This fixes out of array accesses.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Martin Storsjö <martin@martin.st>
libavcodec/vc1.c
libavcodec/vc1.h
libavcodec/vc1dec.c