From 55ca832d70ba48bf7701ec7346ef800ccf73a41f Mon Sep 17 00:00:00 2001 From: Seungha Yang Date: Fri, 18 Nov 2022 01:43:26 +0900 Subject: [PATCH] av1parser: Don't print warning for expected OBU drop Dropping an OBU which is not in selected operation point is an expected condition. Part-of: --- .../gst-libs/gst/codecparsers/gstav1parser.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/subprojects/gst-plugins-bad/gst-libs/gst/codecparsers/gstav1parser.c b/subprojects/gst-plugins-bad/gst-libs/gst/codecparsers/gstav1parser.c index 17a72ba9ed..3e80380976 100644 --- a/subprojects/gst-plugins-bad/gst-libs/gst/codecparsers/gstav1parser.c +++ b/subprojects/gst-plugins-bad/gst-libs/gst/codecparsers/gstav1parser.c @@ -799,8 +799,7 @@ gst_av1_parser_identify_one_obu (GstAV1Parser * parser, const guint8 * data, if (obu_length == 0) { /* An empty obu? let continue to the next */ - ret = GST_AV1_PARSER_DROP; - goto error; + return GST_AV1_PARSER_DROP; } } @@ -881,8 +880,7 @@ gst_av1_parser_identify_one_obu (GstAV1Parser * parser, const guint8 * data, (parser->state.operating_point_idc >> (obu->header.obu_spatial_id + 8)) & 1; if (!inTemporalLayer || !inSpatialLayer) { - ret = GST_AV1_PARSER_DROP; - goto error; + return GST_AV1_PARSER_DROP; } }