[FFmpeg-devel] [PATCH v3 3/9] avcodec/libdav1d: initialize AFGS1 VSC metadata
Niklas Haas
ffmpeg at haasn.xyz
Fri Mar 15 13:58:56 EET 2024
From: Niklas Haas <git at haasn.dev>
Unused by AV1, but should still be set properly.
---
libavcodec/libdav1d.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/libavcodec/libdav1d.c b/libavcodec/libdav1d.c
index 1aa2d1f3436..6251ea79ba8 100644
--- a/libavcodec/libdav1d.c
+++ b/libavcodec/libdav1d.c
@@ -628,6 +628,10 @@ static int libdav1d_receive_frame(AVCodecContext *c, AVFrame *frame)
fgp->codec.aom.grain_scale_shift = p->frame_hdr->film_grain.data.grain_scale_shift;
fgp->codec.aom.overlap_flag = p->frame_hdr->film_grain.data.overlap_flag;
fgp->codec.aom.limit_output_range = p->frame_hdr->film_grain.data.clip_to_restricted_range;
+ fgp->codec.aom.color_range = AVCOL_RANGE_UNSPECIFIED;
+ fgp->codec.aom.color_primaries = AVCOL_PRI_UNSPECIFIED;
+ fgp->codec.aom.color_trc = AVCOL_TRC_UNSPECIFIED;
+ fgp->codec.aom.color_space = AVCOL_SPC_UNSPECIFIED;
memcpy(&fgp->codec.aom.y_points, &p->frame_hdr->film_grain.data.y_points,
sizeof(fgp->codec.aom.y_points));
--
2.44.0
More information about the ffmpeg-devel
mailing list