diff options
author | Mashiat Sarker Shakkhar <shahriman_ams@yahoo.com> | 2012-01-27 03:53:24 +0400 |
---|---|---|
committer | Ronald S. Bultje <rsbultje@gmail.com> | 2012-01-27 05:24:13 +0400 |
commit | d51d6ae9c41310d62f4582c07c2fad26d41eeca6 (patch) | |
tree | 15252eefdda10126a354fc67214ed06cf9785f0e /libavcodec/vc1dec.c | |
parent | fc115c80b7bf6f1f5a937ee7f6e14630d99eb4dd (diff) |
vc1dec.c: Don't use uninitialized values of dmv_[x, y]
MVDATA may or may not be transmitted. If it is not, both
dmv_x and dmv_y is to be assumed zero.
This may not trigger wrong picture in all systems, but
it's a bug nevertheless. Fixes SA10116.vc1 on my 64-bit
Windows 7.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
Diffstat (limited to 'libavcodec/vc1dec.c')
-rw-r--r-- | libavcodec/vc1dec.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/vc1dec.c b/libavcodec/vc1dec.c index fa952739bb..325cc64fef 100644 --- a/libavcodec/vc1dec.c +++ b/libavcodec/vc1dec.c @@ -3954,6 +3954,7 @@ static int vc1_decode_p_mb_intfr(VC1Context *v) vc1_mc_4mv_chroma4(v); } else { mvbp = ff_vc1_mbmode_intfrp[v->fourmvswitch][idx_mbmode][2]; + dmv_x = dmv_y = 0; if (mvbp) { get_mvdata_interlaced(v, &dmv_x, &dmv_y, 0); } |