projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ff24824
)
hevc_mvs: initialize the temporal MV in case of missing ref
author
Anton Khirnov
<anton@khirnov.net>
Mon, 29 Sep 2014 16:16:50 +0000
(16:16 +0000)
committer
Vittorio Giovara
<vittorio.giovara@gmail.com>
Wed, 8 Oct 2014 11:30:54 +0000
(12:30 +0100)
The caller expects the MV to always be initialized.
libavcodec/hevc_mvs.c
patch
|
blob
|
history
diff --git
a/libavcodec/hevc_mvs.c
b/libavcodec/hevc_mvs.c
index
a611b76
..
8b172a2
100644
(file)
--- 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;