diff options
author | Gwenole Beauchesne <gwenole.beauchesne@intel.com> | 2014-07-01 17:18:08 +0200 |
---|---|---|
committer | Gwenole Beauchesne <gwenole.beauchesne@intel.com> | 2014-07-01 17:18:08 +0200 |
commit | cba9b973006b9f59046578a195ead1c23262a509 (patch) | |
tree | c8e8f08aeafc01695ebbc09e394e5c52e639294a /gst-libs/gst/vaapi/gstvaapidecoder_h264.c | |
parent | 4263effee560044a6cdffb36d1763acd9026241e (diff) | |
download | gst-vaapi-cba9b973006b9f59046578a195ead1c23262a509.tar.gz |
decoder: h264: fix memory leak in PPS.
Cope with latest changes from codecparsers/h264. It is now required
to explicitly clear the GstH264PPS structure as it could contain
additional allocations (slice_group_ids).
Diffstat (limited to 'gst-libs/gst/vaapi/gstvaapidecoder_h264.c')
-rw-r--r-- | gst-libs/gst/vaapi/gstvaapidecoder_h264.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gst-libs/gst/vaapi/gstvaapidecoder_h264.c b/gst-libs/gst/vaapi/gstvaapidecoder_h264.c index fe3f628b..7caabfbd 100644 --- a/gst-libs/gst/vaapi/gstvaapidecoder_h264.c +++ b/gst-libs/gst/vaapi/gstvaapidecoder_h264.c @@ -104,6 +104,9 @@ gst_vaapi_parser_info_h264_finalize(GstVaapiParserInfoH264 *pi) case GST_H264_NAL_SUBSET_SPS: gst_h264_sps_clear(&pi->data.sps); break; + case GST_H264_NAL_PPS: + gst_h264_pps_clear(&pi->data.pps); + break; case GST_H264_NAL_SEI: if (pi->data.sei) { g_array_unref(pi->data.sei); |