From 2d624a1d6b5802d43a9edb678c3044ce513751ba Mon Sep 17 00:00:00 2001 From: He Junyan Date: Sat, 5 Mar 2022 11:35:29 +0800 Subject: [PATCH] av1parse: Add a comment when the detection of TU fails. Also update the print message. Part-of: --- subprojects/gst-plugins-bad/gst/videoparsers/gstav1parse.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/subprojects/gst-plugins-bad/gst/videoparsers/gstav1parse.c b/subprojects/gst-plugins-bad/gst/videoparsers/gstav1parse.c index a9c205e..e80656b 100644 --- a/subprojects/gst-plugins-bad/gst/videoparsers/gstav1parse.c +++ b/subprojects/gst-plugins-bad/gst/videoparsers/gstav1parse.c @@ -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; } } -- 2.7.4