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: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2220>
This commit is contained in:
Hou Qi 2022-04-15 09:53:19 +08:00 committed by GStreamer Marge Bot
parent c88a68c411
commit 0ea41bac13

View file

@ -762,6 +762,7 @@ gst_v4l2_video_dec_handle_frame (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);
if (!gst_video_decoder_negotiate (decoder)) {