mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
codecs: h265decoder: Always free messages while parsing SEI
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2390>
This commit is contained in:
parent
cd50b02bc9
commit
bc6b68215f
1 changed files with 2 additions and 1 deletions
|
@ -415,7 +415,7 @@ gst_h265_decoder_parse_sei (GstH265Decoder * self, GstH265NalUnit * nalu)
|
|||
{
|
||||
GstH265DecoderPrivate *priv = self->priv;
|
||||
GstH265ParserResult pres;
|
||||
GArray *messages;
|
||||
GArray *messages = NULL;
|
||||
guint i;
|
||||
|
||||
pres = gst_h265_parser_parse_sei (priv->parser, nalu, &messages);
|
||||
|
@ -424,6 +424,7 @@ gst_h265_decoder_parse_sei (GstH265Decoder * self, GstH265NalUnit * nalu)
|
|||
|
||||
/* XXX: Ignore error from SEI parsing, it might be malformed bitstream,
|
||||
* or our fault. But shouldn't be critical */
|
||||
g_clear_pointer (&messages, g_array_unref);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue