mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
av1parse: Save the default alignment
Otherwise the transformation is not applied and decoders may not get the appropriate format despite the caps being negotiated correctly. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1837>
This commit is contained in:
parent
f627d6aafc
commit
29826aa80e
1 changed files with 4 additions and 2 deletions
|
@ -862,9 +862,11 @@ gst_av1_parse_set_sink_caps (GstBaseParse * parse, GstCaps * caps)
|
|||
|
||||
in_caps = gst_caps_copy (caps);
|
||||
/* default */
|
||||
if (align == GST_AV1_PARSE_ALIGN_NONE)
|
||||
if (align == GST_AV1_PARSE_ALIGN_NONE) {
|
||||
align = GST_AV1_PARSE_ALIGN_BYTE;
|
||||
gst_caps_set_simple (in_caps, "alignment", G_TYPE_STRING,
|
||||
gst_av1_parse_alignment_to_string (GST_AV1_PARSE_ALIGN_BYTE), NULL);
|
||||
gst_av1_parse_alignment_to_string (align), NULL);
|
||||
}
|
||||
|
||||
/* negotiate with downstream, set output align */
|
||||
gst_av1_parse_negotiate (self, in_caps);
|
||||
|
|
Loading…
Reference in a new issue