diff options
author | Vittorio Giovara <vittorio.giovara@gmail.com> | 2014-11-09 10:48:39 +0300 |
---|---|---|
committer | Vittorio Giovara <vittorio.giovara@gmail.com> | 2014-11-11 13:49:47 +0300 |
commit | 9e9be5a20c0b36dce1cae11f5f5957886231a764 (patch) | |
tree | bea53476d5a6d2452ba222140ac642e0bdf1b4d2 /libavcodec | |
parent | 0e1ebfebc8326069732795698a82f3fea0742a54 (diff) |
hevc_mvs: prevent unitialized use
CC: libav-stable@libav.org
Bug-Id: CID 1244202
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/hevc_mvs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/hevc_mvs.c b/libavcodec/hevc_mvs.c index 721eb3af41..48cd234bd3 100644 --- a/libavcodec/hevc_mvs.c +++ b/libavcodec/hevc_mvs.c @@ -470,7 +470,7 @@ static void derive_spatial_merge_candidates(HEVCContext *s, int x0, int y0, // temporal motion vector candidate if (s->sh.slice_temporal_mvp_enabled_flag && nb_merge_cand < s->sh.max_num_merge_cand) { - Mv mv_l0_col, mv_l1_col; + Mv mv_l0_col = { 0 }, mv_l1_col = { 0 }; int available_l0 = temporal_luma_motion_vector(s, x0, y0, nPbW, nPbH, 0, &mv_l0_col, 0); int available_l1 = (s->sh.slice_type == B_SLICE) ? |