v4l2videodec: copy colorimetry values to output_state caps
authorHou Qi <qi.hou@nxp.com>
Fri, 15 Apr 2022 01:53:19 +0000 (09:53 +0800)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Mon, 18 Apr 2022 13:17:55 +0000 (13:17 +0000)
This is to avoid transcoding negotiation fail between v4l2h265dec
and v4l2h264enc caused by colorimetry mismatch.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2192>

subprojects/gst-plugins-good/sys/v4l2/gstv4l2videodec.c

index 6297138ceb641f1585688b298ac2b4b82bcd8ff2..71438f9188e5caa3a5f8af120203b83eeb8481c3 100644 (file)
@@ -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));