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

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


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Wed Nov 25 17:05:33 2020 -0300| [003aeeb3f6216d98fa993fc830c1ce861955c99a] | committer: James Almer

avcodec/nvdec_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=003aeeb3f6216d98fa993fc830c1ce861955c99a
---

 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;



More information about the ffmpeg-cvslog mailing list