diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-10-07 12:29:07 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-10-07 12:29:07 +0200 |
commit | 33c8500db4e25b7883e4655ba7db798542d05afc (patch) | |
tree | efa5dfec69c67581183fa431993f3119dc0e6588 /libavcodec/hevc_mvs.c | |
parent | 018ca8b7f6a8ff19edd7a79e01bea091dbc56fa9 (diff) | |
parent | d208d1eba3799c58fd6d3602d31de3e686f14aec (diff) | |
download | ffmpeg-33c8500db4e25b7883e4655ba7db798542d05afc.tar.gz |
Merge commit 'd208d1eba3799c58fd6d3602d31de3e686f14aec'
* commit 'd208d1eba3799c58fd6d3602d31de3e686f14aec':
hevc_mvs: make sure to always initialize the temporal MV fully
Conflicts:
libavcodec/hevc_mvs.c
Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/hevc_mvs.c')
-rw-r--r-- | libavcodec/hevc_mvs.c | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/libavcodec/hevc_mvs.c b/libavcodec/hevc_mvs.c index 26c7c10b57..826d084662 100644 --- a/libavcodec/hevc_mvs.c +++ b/libavcodec/hevc_mvs.c @@ -417,14 +417,10 @@ static void derive_spatial_merge_candidates(HEVCContext *s, int x0, int y0, if (available_l0 || available_l1) { mergecandlist[nb_merge_cand].pred_flag = available_l0 + (available_l1 << 1); - if (available_l0) { - mergecandlist[nb_merge_cand].mv[0] = mv_l0_col; - mergecandlist[nb_merge_cand].ref_idx[0] = 0; - } - if (available_l1) { - mergecandlist[nb_merge_cand].mv[1] = mv_l1_col; - mergecandlist[nb_merge_cand].ref_idx[1] = 0; - } + AV_ZERO16(mergecandlist[nb_merge_cand].ref_idx); + mergecandlist[nb_merge_cand].mv[0] = mv_l0_col; + mergecandlist[nb_merge_cand].mv[1] = mv_l1_col; + if (merge_idx == nb_merge_cand) return; nb_merge_cand++; @@ -490,8 +486,6 @@ void ff_hevc_luma_mv_merge_mode(HEVCContext *s, int x0, int y0, int nPbW, int nPbH2 = nPbH; HEVCLocalContext *lc = s->HEVClc; - memset(mergecand_list, 0, MRG_MAX_NUM_CANDS * sizeof(*mergecand_list)); - if (s->pps->log2_parallel_merge_level > 2 && nCS == 8) { singleMCLFlag = 1; x0 = lc->cu.x; |