From 5770a96c8d43fd744a348f869746b26ac648afa3 Mon Sep 17 00:00:00 2001 From: Sreerenj Balachandran Date: Fri, 10 Apr 2015 15:34:40 +0300 Subject: [PATCH] h265parse: Fix the memory freeing of stored VPS nals https://bugzilla.gnome.org/show_bug.cgi?id=747613 --- gst/videoparsers/gsth265parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/videoparsers/gsth265parse.c b/gst/videoparsers/gsth265parse.c index 95d7c52..01546d9 100644 --- a/gst/videoparsers/gsth265parse.c +++ b/gst/videoparsers/gsth265parse.c @@ -229,7 +229,7 @@ gst_h265_parse_stop (GstBaseParse * parse) GST_DEBUG_OBJECT (parse, "stop"); gst_h265_parse_reset (h265parse); - for (i = 0; i < GST_H265_MAX_SPS_COUNT; i++) + for (i = 0; i < GST_H265_MAX_VPS_COUNT; i++) gst_buffer_replace (&h265parse->vps_nals[i], NULL); for (i = 0; i < GST_H265_MAX_SPS_COUNT; i++) gst_buffer_replace (&h265parse->sps_nals[i], NULL); -- 2.7.4