From ccd1ed9cbc5217887b555f63070c4529eeb380ab Mon Sep 17 00:00:00 2001 From: He Junyan Date: Thu, 3 Mar 2022 21:30:00 +0800 Subject: [PATCH] ivfparse: Set the alignment to tu for AV1 stream. Just do the same as other demux. Part-of: --- subprojects/gst-plugins-bad/gst/ivfparse/gstivfparse.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/subprojects/gst-plugins-bad/gst/ivfparse/gstivfparse.c b/subprojects/gst-plugins-bad/gst/ivfparse/gstivfparse.c index efc982511a..bf27c2436e 100644 --- a/subprojects/gst-plugins-bad/gst/ivfparse/gstivfparse.c +++ b/subprojects/gst-plugins-bad/gst/ivfparse/gstivfparse.c @@ -238,6 +238,9 @@ gst_ivf_parse_update_src_caps (GstIvfParse * ivf) ivf->fps_d, NULL); } + if (ivf->fourcc == GST_MAKE_FOURCC ('A', 'V', '0', '1')) + gst_caps_set_simple (caps, "alignment", G_TYPE_STRING, "tu", NULL); + gst_pad_set_caps (GST_BASE_PARSE_SRC_PAD (ivf), caps); gst_caps_unref (caps); }