summaryrefslogtreecommitdiff
path: root/gst-libs/gst/codecs/gsth265decoder.c
diff options
context:
space:
mode:
Diffstat (limited to 'gst-libs/gst/codecs/gsth265decoder.c')
-rw-r--r--gst-libs/gst/codecs/gsth265decoder.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gst-libs/gst/codecs/gsth265decoder.c b/gst-libs/gst/codecs/gsth265decoder.c
index 033d9f26b..86b27e4d8 100644
--- a/gst-libs/gst/codecs/gsth265decoder.c
+++ b/gst-libs/gst/codecs/gsth265decoder.c
@@ -380,6 +380,12 @@ gst_h265_decoder_parse_slice (GstH265Decoder * self, GstH265NalUnit * nalu,
return FALSE;
}
+ /* NOTE: gst_h265_parser_parse_slice_hdr() allocates array
+ * GstH265SliceHdr::entry_point_offset_minus1 but we don't use it
+ * in this h265decoder baseclass at the moment
+ */
+ gst_h265_slice_hdr_free (&priv->current_slice.header);
+
priv->current_slice.nalu = *nalu;
if (!gst_h265_decoder_preprocess_slice (self, &priv->current_slice))