Commit 6f2e9c48 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

RTP: remove trailing spaces

parent 229c385a
......@@ -1330,11 +1330,11 @@ static int rtp_packetize_spx( sout_stream_id_sys_t *id, block_t *in )
}
/*
RFC for Speex in RTP says that each packet must end on an octet
RFC for Speex in RTP says that each packet must end on an octet
boundary. So, we check to see if the number of bytes % 4 is zero.
If not, we have to add some padding.
If not, we have to add some padding.
This MAY be overkill since packetization is handled elsewhere and
This MAY be overkill since packetization is handled elsewhere and
appears to ensure the octet boundary. However, better safe than
sorry.
*/
......@@ -1345,8 +1345,8 @@ static int rtp_packetize_spx( sout_stream_id_sys_t *id, block_t *in )
}
/*
Allocate a new RTP p_output block of the appropriate size.
Allow for 12 extra bytes of RTP header.
Allocate a new RTP p_output block of the appropriate size.
Allow for 12 extra bytes of RTP header.
*/
p_out = block_Alloc( 12 + i_payload_size );
......@@ -1364,15 +1364,15 @@ static int rtp_packetize_spx( sout_stream_id_sys_t *id, block_t *in )
of the expected RTP header added during
rtp_packetize_common.
*/
p_out->p_buffer[12 + i_data_size] = c_first_pad;
p_out->p_buffer[12 + i_data_size] = c_first_pad;
switch (i_payload_padding)
{
case 2:
p_out->p_buffer[12 + i_data_size + 1] = c_remaining_pad;
p_out->p_buffer[12 + i_data_size + 1] = c_remaining_pad;
break;
case 3:
p_out->p_buffer[12 + i_data_size + 1] = c_remaining_pad;
p_out->p_buffer[12 + i_data_size + 2] = c_remaining_pad;
p_out->p_buffer[12 + i_data_size + 1] = c_remaining_pad;
p_out->p_buffer[12 + i_data_size + 2] = c_remaining_pad;
break;
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment