aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/vc1.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-10-11 11:56:42 +0200
committerMichael Niedermayer <michaelni@gmx.at>2011-10-11 13:55:09 +0200
commit4509be3d2f46a52ada8e2ecb476faed93e19abf3 (patch)
treef08920633b628fa703627471fb8d996f02b3043a /libavcodec/vc1.c
parentd557152285afd4e0d84a138d482b04d1ca14abe3 (diff)
downloadffmpeg-4509be3d2f46a52ada8e2ecb476faed93e19abf3.tar.gz
vc1: reset interlaced variables, prevent another bunch of crashes.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/vc1.c')
-rw-r--r--libavcodec/vc1.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/vc1.c b/libavcodec/vc1.c
index 9e3ad4d6f1..8d7b1c1ed7 100644
--- a/libavcodec/vc1.c
+++ b/libavcodec/vc1.c
@@ -825,6 +825,8 @@ int vc1_parse_frame_header_adv(VC1Context *v, GetBitContext* gb)
int scale, shift, i; /* for initializing LUT for intensity compensation */
v->numref=0;
+ v->fcm=0;
+ v->field_mode=0;
v->p_frame_skipped = 0;
if (v->second_field) {
v->s.pict_type = (v->fptype & 1) ? AV_PICTURE_TYPE_P : AV_PICTURE_TYPE_I;