diff options
author | Vittorio Giovara <vittorio.giovara@gmail.com> | 2014-11-11 17:39:59 +0100 |
---|---|---|
committer | Vittorio Giovara <vittorio.giovara@gmail.com> | 2014-11-13 01:41:25 +0100 |
commit | 2c98dc75f2802a2fe91922d4a11b698b66420e5b (patch) | |
tree | 7ac918fbed30a9ec332ff73fb9631dd14f07452e /libavcodec/vc1_mc.c | |
parent | e3f50f247155216229e34f165bae8c329d5a001e (diff) | |
download | ffmpeg-2c98dc75f2802a2fe91922d4a11b698b66420e5b.tar.gz |
vc1dec: always initialize tx and ty
CC: libav-stable@libav.org
Bug-Id: CID 1245702 / CID 1245703
Diffstat (limited to 'libavcodec/vc1_mc.c')
-rw-r--r-- | libavcodec/vc1_mc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/vc1_mc.c b/libavcodec/vc1_mc.c index 54c4e72cfa..00a003ce8c 100644 --- a/libavcodec/vc1_mc.c +++ b/libavcodec/vc1_mc.c @@ -302,7 +302,7 @@ void ff_vc1_mc_4mv_luma(VC1Context *v, int n, int dir, int avg) if (s->pict_type == AV_PICTURE_TYPE_P && n == 3 && v->field_mode) { int same_count = 0, opp_count = 0, k; int chosen_mv[2][4][2], f; - int tx, ty; + int tx = 0, ty = 0; for (k = 0; k < 4; k++) { f = v->mv_f[0][s->block_index[k] + v->blocks_off]; chosen_mv[f][f ? opp_count : same_count][0] = s->mv[0][k][0]; |