h265parse: Fix the memory freeing of stored VPS nals
authorSreerenj Balachandran <sreerenj.balachandran@intel.com>
Fri, 10 Apr 2015 12:34:40 +0000 (15:34 +0300)
committerSebastian Dröge <sebastian@centricular.com>
Thu, 30 Apr 2015 19:49:17 +0000 (21:49 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=747613

gst/videoparsers/gsth265parse.c

index 95d7c52..01546d9 100644 (file)
@@ -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);