ivfparse: Set the alignment to tu for AV1 stream.
authorHe Junyan <junyan.he@intel.com>
Thu, 3 Mar 2022 13:30:00 +0000 (21:30 +0800)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Fri, 4 Mar 2022 21:58:15 +0000 (21:58 +0000)
Just do the same as other demux.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1837>

subprojects/gst-plugins-bad/gst/ivfparse/gstivfparse.c

index efc9825..bf27c24 100644 (file)
@@ -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);
 }