mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 09:55:36 +00:00
rtpmp4apay,rtpmp4depay: fix buffer leaks in AAC payloader and depayloader
This commit is contained in:
parent
297bbfbebc
commit
4bcd50ccbd
2 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -447,6 +447,9 @@ gst_rtp_mp4a_pay_handle_buffer (GstBaseRTPPayload * basepayload,
|
|||
|
||||
fragmented = TRUE;
|
||||
}
|
||||
|
||||
gst_buffer_unref (buffer);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue