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 /win32/common | |
parent | b458a1e255d612ffd1f41f5c17cbd8c59f12e963 (diff) | |
download | gstreamer-plugins-bad-9bd186a960132b2141e2baffebc458501133d582.tar.gz |
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 'win32/common')
-rw-r--r-- | win32/common/libgstcodecparsers.def | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/win32/common/libgstcodecparsers.def b/win32/common/libgstcodecparsers.def index 45df377b1..31dc975d3 100644 --- a/win32/common/libgstcodecparsers.def +++ b/win32/common/libgstcodecparsers.def @@ -15,6 +15,7 @@ EXPORTS gst_h264_parser_parse_sei gst_h264_parser_parse_slice_hdr gst_h264_parser_parse_sps + gst_h264_pps_clear gst_h264_quant_matrix_4x4_get_raster_from_zigzag gst_h264_quant_matrix_4x4_get_zigzag_from_raster gst_h264_quant_matrix_8x8_get_raster_from_zigzag |