diff options
author | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2009-03-25 01:28:38 +0000 |
---|---|---|
committer | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2009-03-25 10:36:49 +0000 |
commit | 4bcd50ccbdc5b34d200d898875a35ef59ab1c10b (patch) | |
tree | fa0840d8359a85ece5ec6847fd6cd569c592a321 /gst/rtp | |
parent | 297bbfbebc7bf03cd94e89a4ef7b9660a6cf3e9c (diff) |
rtpmp4apay,rtpmp4depay: fix buffer leaks in AAC payloader and depayloader
Diffstat (limited to 'gst/rtp')
-rw-r--r-- | gst/rtp/gstrtpmp4adepay.c | 3 | ||||
-rw-r--r-- | gst/rtp/gstrtpmp4apay.c | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/gst/rtp/gstrtpmp4adepay.c b/gst/rtp/gstrtpmp4adepay.c index cb8735d0..15dfb0dc 100644 --- a/gst/rtp/gstrtpmp4adepay.c +++ b/gst/rtp/gstrtpmp4adepay.c @@ -316,6 +316,8 @@ gst_rtp_mp4a_depay_process (GstBaseRTPDepayload * depayload, GstBuffer * buf) ("Packet invalid"), ("Not all payload consumed: " "possible wrongly encoded packet.")); } + + gst_buffer_unref (outbuf); } return NULL; @@ -324,6 +326,7 @@ wrong_size: { GST_ELEMENT_WARNING (rtpmp4adepay, STREAM, DECODE, ("Packet did not validate"), ("wrong packet size")); + gst_buffer_unref (outbuf); return NULL; } } diff --git a/gst/rtp/gstrtpmp4apay.c b/gst/rtp/gstrtpmp4apay.c index 6d18bd06..f4c9d255 100644 --- a/gst/rtp/gstrtpmp4apay.c +++ b/gst/rtp/gstrtpmp4apay.c @@ -447,6 +447,9 @@ gst_rtp_mp4a_pay_handle_buffer (GstBaseRTPPayload * basepayload, fragmented = TRUE; } + + gst_buffer_unref (buffer); + return ret; } |