diff options
author | Gwenole Beauchesne <gwenole.beauchesne@intel.com> | 2014-06-27 10:53:20 +0200 |
---|---|---|
committer | Gwenole Beauchesne <gwenole.beauchesne@intel.com> | 2014-06-27 14:00:10 +0200 |
commit | 9bd186a960132b2141e2baffebc458501133d582 (patch) | |
tree | 520e0a1255e53ec95c206b43dd2c6b6d2101debe /gst | |
parent | b458a1e255d612ffd1f41f5c17cbd8c59f12e963 (diff) |
codecparsers: h264: fix memory leak in GstH264PPS.
The gst_h264_parse_pps() function dynamically allocates the slice
group ids map array, so that needs to be cleared before parsing a
new PPS NAL unit again, or when it is no longer needed.
Likewise, a clean copy to the internal NAL parser state needs to be
performed so that to avoid a double-free corruption.
https://bugzilla.gnome.org/show_bug.cgi?id=707282
Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
Diffstat (limited to 'gst')
-rw-r--r-- | gst/videoparsers/gsth264parse.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gst/videoparsers/gsth264parse.c b/gst/videoparsers/gsth264parse.c index dbee6a6cb..c14784a6f 100644 --- a/gst/videoparsers/gsth264parse.c +++ b/gst/videoparsers/gsth264parse.c @@ -581,6 +581,7 @@ gst_h264_parse_process_nal (GstH264Parse * h264parse, GstH264NalUnit * nalu) } gst_h264_parser_store_nal (h264parse, pps.id, nal_type, nalu); + gst_h264_pps_clear (&pps); break; case GST_H264_NAL_SEI: gst_h264_parse_process_sei (h264parse, nalu); |