mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-23 07:38:16 +00:00
rtpaudiopayload: Only sent exact multiple of the frame size
Also align the maximum size with the frame size, not only the minimum
This commit is contained in:
parent
e55bf9bdd8
commit
e27c24b200
1 changed files with 2 additions and 2 deletions
|
@ -719,8 +719,8 @@ gst_base_rtp_audio_payload_handle_buffer (GstBaseRTPPayload *
|
|||
/* as long as we have full frames */
|
||||
while (available >= min_payload_len) {
|
||||
/* get multiple of alignment */
|
||||
payload_len = ALIGN_DOWN (available, align);
|
||||
payload_len = MIN (max_payload_len, payload_len);
|
||||
payload_len = MIN (max_payload_len, available);
|
||||
payload_len = ALIGN_DOWN (payload_len, align);
|
||||
|
||||
/* and flush out the bytes from the adapter, automatically set the
|
||||
* timestamp. */
|
||||
|
|
Loading…
Reference in a new issue