av1parse: Only check the TU bound when the alignment is TU.
authorHe Junyan <junyan.he@intel.com>
Fri, 14 Oct 2022 09:25:45 +0000 (17:25 +0800)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Fri, 21 Oct 2022 11:16:13 +0000 (11:16 +0000)
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3182>

subprojects/gst-plugins-bad/gst/videoparsers/gstav1parse.c

index 2299afc..7c9c55e 100644 (file)
@@ -1736,8 +1736,13 @@ again:
       break;
 
     check_new_tu = FALSE;
-    res = gst_av1_parse_handle_one_obu (self, &obu, &frame_complete,
-        &check_new_tu);
+    if (self->align == GST_AV1_PARSE_ALIGN_TEMPORAL_UNIT
+        || self->align == GST_AV1_PARSE_ALIGN_TEMPORAL_UNIT_ANNEX_B) {
+      res = gst_av1_parse_handle_one_obu (self, &obu, &frame_complete,
+          &check_new_tu);
+    } else {
+      res = gst_av1_parse_handle_one_obu (self, &obu, &frame_complete, NULL);
+    }
     if (res != GST_AV1_PARSER_OK)
       break;