From 29826aa80e8ab56db106faac85187fdacb4c99ed Mon Sep 17 00:00:00 2001 From: Nicolas Dufresne Date: Wed, 2 Mar 2022 16:22:25 -0500 Subject: [PATCH] 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: --- subprojects/gst-plugins-bad/gst/videoparsers/gstav1parse.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/subprojects/gst-plugins-bad/gst/videoparsers/gstav1parse.c b/subprojects/gst-plugins-bad/gst/videoparsers/gstav1parse.c index 2674692..cf75013 100644 --- a/subprojects/gst-plugins-bad/gst/videoparsers/gstav1parse.c +++ b/subprojects/gst-plugins-bad/gst/videoparsers/gstav1parse.c @@ -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); -- 2.7.4