You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
hevc_mvs: initialize the temporal MV in case of missing ref
The caller expects the MV to always be initialized.
This commit is contained in:
@@ -257,8 +257,10 @@ static int temporal_luma_motion_vector(HEVCContext *s, int x0, int y0,
|
|||||||
|
|
||||||
HEVCFrame *ref = s->ref->collocated_ref;
|
HEVCFrame *ref = s->ref->collocated_ref;
|
||||||
|
|
||||||
if (!ref)
|
if (!ref) {
|
||||||
|
memset(mvLXCol, 0, sizeof(*mvLXCol));
|
||||||
return 0;
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
tab_mvf = ref->tab_mvf;
|
tab_mvf = ref->tab_mvf;
|
||||||
colPic = ref->poc;
|
colPic = ref->poc;
|
||||||
|
Reference in New Issue
Block a user