h265parse: Free SEI if parsing succeeds but alignment afterwards fails

Fixes https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/4076

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8056>
This commit is contained in:
Sebastian Dröge 2024-12-03 13:10:04 +02:00 committed by GStreamer Marge Bot
parent 6b0efe5453
commit 8830c65b8f

View file

@ -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;
}