avcodec/av1_vaapi: add gm params valid check
Signed-off-by: Fei Wang <fei.w.wang@intel.com> (cherry picked from commit 0d0ea70e7bdd85def85d526480d728740a371744)
This commit is contained in:
parent
481d3930d9
commit
8b9a48b7aa
@ -213,7 +213,8 @@ static int vaapi_av1_start_frame(AVCodecContext *avctx,
|
||||
frame_header->height_in_sbs_minus_1[i];
|
||||
}
|
||||
for (int i = AV1_REF_FRAME_LAST; i <= AV1_REF_FRAME_ALTREF; i++) {
|
||||
pic_param.wm[i - 1].wmtype = s->cur_frame.gm_type[i];
|
||||
pic_param.wm[i - 1].invalid = s->cur_frame.gm_invalid[i];
|
||||
pic_param.wm[i - 1].wmtype = s->cur_frame.gm_type[i];
|
||||
for (int j = 0; j < 6; j++)
|
||||
pic_param.wm[i - 1].wmmat[j] = s->cur_frame.gm_params[i][j];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user