From 5119ca25e4aa18185efac9c34279202809e1ef17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 6 Feb 2023 15:26:48 +0200 Subject: [PATCH] av1parser: Don't consider unknown metadata OBUs a bitstream error Just don't parse them. Fixes https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/1774 Part-of: --- .../gst-plugins-bad/gst-libs/gst/codecparsers/gstav1parser.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 8e9a206f27..e31462c125 100644 --- a/subprojects/gst-plugins-bad/gst-libs/gst/codecparsers/gstav1parser.c +++ b/subprojects/gst-plugins-bad/gst-libs/gst/codecparsers/gstav1parser.c @@ -1781,7 +1781,8 @@ gst_av1_parser_parse_metadata_obu (GstAV1Parser * parser, GstAV1OBU * obu, &bit_reader, &(metadata->timecode)); break; default: - return GST_AV1_PARSER_BITSTREAM_ERROR; + GST_WARNING ("Unknown metadata type %u", metadata->metadata_type); + return GST_AV1_PARSER_OK; } if (retval != GST_AV1_PARSER_OK)