Skip to content

videoscale: Fix the src video info error in transfer_colorimetry_from_input()

He Junyan requested to merge He_Junyan/gstreamer:scale_convert_src_caps into main

Pipeline such as: gst-launch-1.0 -vf videotestsrc ! video/x-raw,format=NV12,colorimetry=(string)bt709
! videoscale ! video/x-raw,format=I420 ! fakesink Always trigger a error: ERROR video-info video-info.c:556:gst_video_info_from_caps: no width property given

Because it is called before the fixate_size(), the src caps' resolution may be absent or not fixed. That causes that the src video info can not be created correctly and we can not inherit the colorimetry and chroma-site from the input caps.

Merge request reports