From 8dcb8a28af8aff2308504d54ab9a715ad4f85289 Mon Sep 17 00:00:00 2001 From: Hou Qi Date: Fri, 15 Apr 2022 09:53:19 +0800 Subject: [PATCH] v4l2videodec: copy colorimetry values to output_state caps This is to avoid transcoding negotiation fail between v4l2h265dec and v4l2h264enc caused by colorimetry mismatch. Part-of: --- subprojects/gst-plugins-good/sys/v4l2/gstv4l2videodec.c | 1 + 1 file changed, 1 insertion(+) diff --git a/subprojects/gst-plugins-good/sys/v4l2/gstv4l2videodec.c b/subprojects/gst-plugins-good/sys/v4l2/gstv4l2videodec.c index 6297138ceb..71438f9188 100644 --- a/subprojects/gst-plugins-good/sys/v4l2/gstv4l2videodec.c +++ b/subprojects/gst-plugins-good/sys/v4l2/gstv4l2videodec.c @@ -609,6 +609,7 @@ gst_v4l2_video_dec_setup_capture (GstVideoDecoder * decoder) /* Copy the rest of the information, there might be more in the future */ output_state->info.interlace_mode = info.interlace_mode; + output_state->info.colorimetry = info.colorimetry; gst_video_codec_state_unref (output_state); gst_v4l2_buffer_pool_enable_resolution_change (GST_V4L2_BUFFER_POOL (self->v4l2capture->pool));