OSDN Git Service

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)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 16 Nov 2012 03:58:46 +0000 (04:58 +0100)
commit7845f8d282a98d5e01aaeddfa9af698697d8874d
tree92c76e7576032e6dc4f5849e18278b855e2ab1fc
parent8f42b09604a6751eb3d3c225b8270b708a8338f4
vc1dec: do not allow field_mode to change after the first header

Fixes out of array accesses.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/vc1.c
libavcodec/vc1.h
libavcodec/vc1dec.c