aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorFei Wang <fei.w.wang@intel.com>2021-10-12 16:23:59 +0800
committerJames Almer <jamrial@gmail.com>2021-10-16 19:00:44 -0300
commit0d0ea70e7bdd85def85d526480d728740a371744 (patch)
treee1d4c85892adfd1df5a4208f39478bbc303ad40b /libavcodec
parentde7475b111679120b3b089fe543224f50882287c (diff)
downloadffmpeg-0d0ea70e7bdd85def85d526480d728740a371744.tar.gz
avcodec/av1_vaapi: add gm params valid check
Signed-off-by: Fei Wang <fei.w.wang@intel.com>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/vaapi_av1.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/vaapi_av1.c b/libavcodec/vaapi_av1.c
index 16b7e35747..f577447be4 100644
--- a/libavcodec/vaapi_av1.c
+++ b/libavcodec/vaapi_av1.c
@@ -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];
}