Browse Source

Merge commit '79a60c8e779242b5ba4c531b2c706c871e8e6420'

* commit '79a60c8e779242b5ba4c531b2c706c871e8e6420':
  hevc_mvs: initialize the temporal MV in case of missing ref

Merged-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.5
Michael Niedermayer 11 years ago
parent
commit
018ca8b7f6
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      libavcodec/hevc_mvs.c

+ 3
- 1
libavcodec/hevc_mvs.c View File

@@ -227,8 +227,10 @@ static int temporal_luma_motion_vector(HEVCContext *s, int x0, int y0,

HEVCFrame *ref = s->ref->collocated_ref;

if (!ref)
if (!ref) {
memset(mvLXCol, 0, sizeof(*mvLXCol));
return 0;
}

tab_mvf = ref->tab_mvf;
colPic = ref->poc;


Loading…
Cancel
Save