diff options
author | James Almer <jamrial@gmail.com> | 2020-11-30 13:42:31 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2020-11-30 19:12:39 -0300 |
commit | 052b4c3481b034a6187ad0900f1aa3c73016144e (patch) | |
tree | de188fecb73abe2a0ed94f7ff8d2f39ffaf0b39c | |
parent | 6aa45a27698ae271dbcf6c41d9739bfd0938bb88 (diff) | |
download | ffmpeg-052b4c3481b034a6187ad0900f1aa3c73016144e.tar.gz |
avcodec/vaapi_av1: read film grain param values from AV1Frames
Signed-off-by: James Almer <jamrial@gmail.com>
-rw-r--r-- | libavcodec/vaapi_av1.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |