av1parse: Add a comment when the detection of TU fails.
authorHe Junyan <junyan.he@intel.com>
Sat, 5 Mar 2022 03:35:29 +0000 (11:35 +0800)
committerHe Junyan <junyan.he@intel.com>
Sat, 5 Mar 2022 03:45:15 +0000 (11:45 +0800)
Also update the print message.

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

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

index a9c205e..e80656b 100644 (file)
@@ -1971,9 +1971,11 @@ gst_av1_parse_handle_frame (GstBaseParse * parse,
       GST_INFO_OBJECT (self, "Input alignment %s",
           gst_av1_parse_alignment_to_string (self->in_align));
     } else {
+      /* Because the input is already TU aligned, we should skip
+         the whole problematic TU and check the next one. */
       *skipsize = gst_buffer_get_size (frame->buffer);
       GST_WARNING_OBJECT (self, "Fail to detect the stream format for TU,"
-          " skip %d", *skipsize);
+          " skip the whole TU %d", *skipsize);
       return GST_FLOW_OK;
     }
   }