[FFmpeg-cvslog] avcodec/vaapi_av1: read film grain param values from AV1Frames

James Almer git at videolan.org
Tue Dec 1 00:30:49 EET 2020


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Mon Nov 30 13:42:31 2020 -0300| [052b4c3481b034a6187ad0900f1aa3c73016144e] | committer: James Almer

avcodec/vaapi_av1: read film grain param values from AV1Frames

Signed-off-by: James Almer <jamrial at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=052b4c3481b034a6187ad0900f1aa3c73016144e
---

 libavcodec/vaapi_av1.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/vaapi_av1.c b/libavcodec/vaapi_av1.c
index 21b3eceb91..2763c1e866 100644
--- a/libavcodec/vaapi_av1.c
+++ b/libavcodec/vaapi_av1.c
@@ -56,7 +56,7 @@ static int vaapi_av1_start_frame(AVCodecContext *avctx,
     AV1DecContext *s = avctx->priv_data;
     const AV1RawSequenceHeader *seq = s->raw_seq;
     const AV1RawFrameHeader *frame_header = s->raw_frame_header;
-    const AV1RawFilmGrainParams *film_grain = &frame_header->film_grain;
+    const AV1RawFilmGrainParams *film_grain = &s->cur_frame.film_grain;
     VAAPIDecodePicture *pic = s->cur_frame.hwaccel_picture_private;
     VADecPictureParameterBufferAV1 pic_param;
     int8_t bit_depth_idx;



More information about the ffmpeg-cvslog mailing list