[FFmpeg-cvslog] vc1: reset interlaced variables, prevent another bunch of crashes.

Michael Niedermayer git at videolan.org
Tue Oct 11 13:57:12 CEST 2011


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Oct 11 11:56:42 2011 +0200| [4509be3d2f46a52ada8e2ecb476faed93e19abf3] | committer: Michael Niedermayer

vc1: reset interlaced variables, prevent another bunch of crashes.

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4509be3d2f46a52ada8e2ecb476faed93e19abf3
---

 libavcodec/vc1.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/libavcodec/vc1.c b/libavcodec/vc1.c
index 9e3ad4d..8d7b1c1 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;



More information about the ffmpeg-cvslog mailing list