[FFmpeg-cvslog] avcodec/vvc/dec: support removing film grain params from side data

Wu Jianhua git at videolan.org
Sat May 31 04:49:35 EEST 2025


ffmpeg | branch: master | Wu Jianhua <toqsxw at outlook.com> | Sun Apr 27 19:44:37 2025 +0800| [312f8ef2ca9a546449fd6348370e7a7e11bda729] | committer: Nuo Mi

avcodec/vvc/dec: support removing film grain params from side data

Signed-off-by: Wu Jianhua <toqsxw at outlook.com>

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

 libavcodec/vvc/refs.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/libavcodec/vvc/refs.c b/libavcodec/vvc/refs.c
index 4cf44bcf46..cfbc2977c0 100644
--- a/libavcodec/vvc/refs.c
+++ b/libavcodec/vvc/refs.c
@@ -295,6 +295,9 @@ int ff_vvc_output_frame(VVCContext *s, VVCFrameContext *fc, AVFrame *out, const
             if (ret < 0)
                 return ret;
 
+            if (!(s->avctx->export_side_data & AV_CODEC_EXPORT_DATA_FILM_GRAIN))
+                av_frame_remove_side_data(out, AV_FRAME_DATA_FILM_GRAIN_PARAMS);
+
             if (frame->flags & VVC_FRAME_FLAG_BUMPING)
                 ff_vvc_unref_frame(fc, frame, VVC_FRAME_FLAG_OUTPUT | VVC_FRAME_FLAG_BUMPING);
             else



More information about the ffmpeg-cvslog mailing list