diff options
author | Anton Khirnov <anton@khirnov.net> | 2014-09-29 16:16:50 +0000 |
---|---|---|
committer | Vittorio Giovara <vittorio.giovara@gmail.com> | 2014-10-08 12:30:54 +0100 |
commit | de31f857077a52714f3a2f2e92ac037d42d37769 (patch) | |
tree | c31a36f8a35555ce687f760bf40bcd4f2aef85f3 | |
parent | ff24824a721576195c3b4a711e3ee2af900de795 (diff) | |
download | ffmpeg-de31f857077a52714f3a2f2e92ac037d42d37769.tar.gz |
hevc_mvs: initialize the temporal MV in case of missing ref
The caller expects the MV to always be initialized.
-rw-r--r-- | libavcodec/hevc_mvs.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/hevc_mvs.c b/libavcodec/hevc_mvs.c index a611b762f1..8b172a268d 100644 --- a/libavcodec/hevc_mvs.c +++ b/libavcodec/hevc_mvs.c @@ -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; |