[FFmpeg-cvslog] avcodec/av1_vaapi: add gm params valid check
Fei Wang
git at videolan.org
Sun Oct 17 01:03:11 EEST 2021
ffmpeg | branch: master | Fei Wang <fei.w.wang at intel.com> | Tue Oct 12 16:23:59 2021 +0800| [0d0ea70e7bdd85def85d526480d728740a371744] | committer: James Almer
avcodec/av1_vaapi: add gm params valid check
Signed-off-by: Fei Wang <fei.w.wang at intel.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0d0ea70e7bdd85def85d526480d728740a371744
---
libavcodec/vaapi_av1.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
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];
}
More information about the ffmpeg-cvslog
mailing list