av1parser: Don't print warning for expected OBU drop
authorSeungha Yang <seungha@centricular.com>
Thu, 17 Nov 2022 16:43:26 +0000 (01:43 +0900)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Sat, 19 Nov 2022 11:58:01 +0000 (11:58 +0000)
Dropping an OBU which is not in selected operation point is an
expected condition.

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

subprojects/gst-plugins-bad/gst-libs/gst/codecparsers/gstav1parser.c

index 17a72ba9ed5392b5343a3080335637750bf3ae82..3e8038097688c81c1e6fb95e5b5ef31be76c9a6a 100644 (file)
@@ -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;
     }
   }