Browse Source

hevc_mvs: initialize the temporal MV in case of missing ref

The caller expects the MV to always be initialized.
tags/n2.4.3
Anton Khirnov Vittorio Giovara 11 years ago
parent
commit
de31f85707
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      libavcodec/hevc_mvs.c

+ 3
- 1
libavcodec/hevc_mvs.c View File

@@ -257,8 +257,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