mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 10:11:08 +00:00
rtph265pay: Rename payload_len to max_fragment_size
Align to rtph264pay
This commit is contained in:
parent
34c23bdc5d
commit
9be70dc360
1 changed files with 3 additions and 3 deletions
|
@ -1045,7 +1045,7 @@ gst_rtp_h265_pay_payload_nal_fragment (GstRTPBasePayload * basepayload,
|
|||
{
|
||||
GstRtpH265Pay *rtph265pay = (GstRtpH265Pay *) basepayload;
|
||||
GstFlowReturn ret;
|
||||
guint payload_len;
|
||||
guint max_fragment_size;
|
||||
GstBuffer *outbuf;
|
||||
GstBufferList *outlist = NULL;
|
||||
guint fragment_size;
|
||||
|
@ -1071,12 +1071,12 @@ gst_rtp_h265_pay_payload_nal_fragment (GstRTPBasePayload * basepayload,
|
|||
size);
|
||||
|
||||
/* We keep 3 bytes for PayloadHdr and FU Header */
|
||||
payload_len = gst_rtp_buffer_calc_payload_len (mtu - 3, 0, 0);
|
||||
max_fragment_size = gst_rtp_buffer_calc_payload_len (mtu - 3, 0, 0);
|
||||
|
||||
outlist = gst_buffer_list_new ();
|
||||
|
||||
while (end == 0) {
|
||||
fragment_size = size < payload_len ? size : payload_len;
|
||||
fragment_size = size < max_fragment_size ? size : max_fragment_size;
|
||||
GST_DEBUG_OBJECT (basepayload,
|
||||
"Inside FU fragmentation fragment_size=%d iteration=%d",
|
||||
fragment_size, ii);
|
||||
|
|
Loading…
Reference in a new issue