summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSreerenj Balachandran <sreerenj.balachandran@intel.com>2015-04-10 12:34:40 (GMT)
committerSebastian Dröge <sebastian@centricular.com>2015-04-30 19:49:17 (GMT)
commit5770a96c8d43fd744a348f869746b26ac648afa3 (patch)
treeba175aeb20d921879b7bfd20bf3e1e9f2d39ad33
parenta70c4f319dd3bb39ab43e4e5c0951d8f7f883e7e (diff)
downloadgst-plugins-bad-5770a96c8d43fd744a348f869746b26ac648afa3.tar.gz
gst-plugins-bad-5770a96c8d43fd744a348f869746b26ac648afa3.tar.xz
h265parse: Fix the memory freeing of stored VPS nals
https://bugzilla.gnome.org/show_bug.cgi?id=747613
-rw-r--r--gst/videoparsers/gsth265parse.c2
1 files changed, 1 insertions, 1 deletions
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);