@@ -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));
From: Niklas Haas <git@haasn.dev> Unused by AV1, but should still be set properly. --- libavcodec/libdav1d.c | 4 ++++ 1 file changed, 4 insertions(+)