[FFmpeg-devel] [PATCH 4/5] avcodec/nvdec_av1: read film grain param values from AV1Frames

James Almer jamrial at gmail.com
Wed Nov 25 22:54:44 EET 2020


Signed-off-by: James Almer <jamrial at gmail.com>
---
 libavcodec/nvdec_av1.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
-- 
2.29.2



More information about the ffmpeg-devel mailing list