aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2020-11-25 17:05:33 -0300
committerJames Almer <jamrial@gmail.com>2020-11-30 19:12:39 -0300
commit003aeeb3f6216d98fa993fc830c1ce861955c99a (patch)
tree0e4ebb371e83a777231cf1230e4af2fbe3d3321a
parenteee7ba8dba3546ce953f65b98f6ef59188ec935c (diff)
downloadffmpeg-003aeeb3f6216d98fa993fc830c1ce861955c99a.tar.gz
avcodec/nvdec_av1: read film grain param values from AV1Frames
Signed-off-by: James Almer <jamrial@gmail.com>
-rw-r--r--libavcodec/nvdec_av1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/nvdec_av1.c b/libavcodec/nvdec_av1.c
index 1bac1fe26c..bd920d814a 100644
--- a/libavcodec/nvdec_av1.c
+++ b/libavcodec/nvdec_av1.c
@@ -42,7 +42,7 @@ static int nvdec_av1_start_frame(AVCodecContext *avctx, const uint8_t *buffer, u
const 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;
NVDECContext *ctx = avctx->internal->hwaccel_priv_data;
CUVIDPICPARAMS *pp = &ctx->pic_params;