From 8830c65b8f156df623bc06e938a16a2cf2768795 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 3 Dec 2024 13:10:04 +0200 Subject: [PATCH] h265parse: Free SEI if parsing succeeds but alignment afterwards fails Fixes https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/4076 Part-of: --- .../gst-plugins-bad/gst-libs/gst/codecparsers/gsth265parser.c | 1 + 1 file changed, 1 insertion(+) diff --git a/subprojects/gst-plugins-bad/gst-libs/gst/codecparsers/gsth265parser.c b/subprojects/gst-plugins-bad/gst-libs/gst/codecparsers/gsth265parser.c index 14bd7dce27..3754a22a40 100644 --- a/subprojects/gst-plugins-bad/gst-libs/gst/codecparsers/gsth265parser.c +++ b/subprojects/gst-plugins-bad/gst-libs/gst/codecparsers/gsth265parser.c @@ -3168,6 +3168,7 @@ gst_h265_parser_parse_sei_message (GstH265Parser * parser, error: GST_WARNING ("error parsing \"Sei message\""); + gst_h265_sei_free (sei); return GST_H265_PARSER_ERROR; }