av1parse: Add a comment when the detection of TU fails.

Also update the print message.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1863>
This commit is contained in:
He Junyan 2022-03-05 11:35:29 +08:00
parent 576b074dde
commit 2d624a1d6b

View 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;
}
}