rtpmp4apay,rtpmp4depay: fix buffer leaks in AAC payloader and depayloader

This commit is contained in:
Tim-Philipp Müller 2009-03-25 01:28:38 +00:00
parent 297bbfbebc
commit 4bcd50ccbd
2 changed files with 6 additions and 0 deletions

View file

@ -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;
}
}

View file

@ -447,6 +447,9 @@ gst_rtp_mp4a_pay_handle_buffer (GstBaseRTPPayload * basepayload,
fragmented = TRUE;
}
gst_buffer_unref (buffer);
return ret;
}