aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorFei Wang <fei.w.wang@intel.com>2021-10-12 16:23:59 +0800
committerWolfgang Haupt <haupt.wolfgang@gmail.com>2021-12-28 20:04:52 +0100
commit8b9a48b7aa3c14103f975035bb18601b13ed1707 (patch)
tree43862e8349e45c72b701afc14330f76d60403557 /libavcodec
parent481d3930d90d52587ad76d277cbd2f9cb3109079 (diff)
downloadffmpeg-8b9a48b7aa3c14103f975035bb18601b13ed1707.tar.gz
avcodec/av1_vaapi: add gm params valid check
Signed-off-by: Fei Wang <fei.w.wang@intel.com> (cherry picked from commit 0d0ea70e7bdd85def85d526480d728740a371744)
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];
}