summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim.muller@collabora.co.uk>2009-03-25 01:28:38 +0000
committerTim-Philipp Müller <tim.muller@collabora.co.uk>2009-03-25 10:36:49 +0000
commit4bcd50ccbdc5b34d200d898875a35ef59ab1c10b (patch)
treefa0840d8359a85ece5ec6847fd6cd569c592a321
parent297bbfbebc7bf03cd94e89a4ef7b9660a6cf3e9c (diff)
rtpmp4apay,rtpmp4depay: fix buffer leaks in AAC payloader and depayloader
-rw-r--r--gst/rtp/gstrtpmp4adepay.c3
-rw-r--r--gst/rtp/gstrtpmp4apay.c3
2 files changed, 6 insertions, 0 deletions
diff --git a/gst/rtp/gstrtpmp4adepay.c b/gst/rtp/gstrtpmp4adepay.c
index cb8735d06..15dfb0dca 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 6d18bd06f..f4c9d255a 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;
}