mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
h265parse: fix colorimetry in src caps if sink caps has no structure
We do want to include the colorimetry in the src caps if the sink caps doesn't have any structure associated.
This commit is contained in:
parent
e0d9722a1b
commit
403cffeace
1 changed files with 1 additions and 1 deletions
|
@ -2184,7 +2184,7 @@ gst_h265_parse_update_src_caps (GstH265Parse * h265parse, GstCaps * caps)
|
|||
sps->bit_depth_luma_minus8 + 8, "bit-depth-chroma", G_TYPE_UINT,
|
||||
bit_depth_chroma, NULL);
|
||||
|
||||
if (colorimetry && s && !gst_structure_has_field (s, "colorimetry")) {
|
||||
if (colorimetry && (!s || !gst_structure_has_field (s, "colorimetry"))) {
|
||||
gst_caps_set_simple (caps, "colorimetry", G_TYPE_STRING, colorimetry,
|
||||
NULL);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue