mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
avcodec/av1_vaapi: add gm params valid check
Signed-off-by: Fei Wang <fei.w.wang@intel.com>
This commit is contained in:
parent
de7475b111
commit
0d0ea70e7b
@ -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…
Reference in New Issue
Block a user