[vlc-commits] RTP: remove trailing spaces

Jean-Baptiste Kempf git at videolan.org
Sat Dec 6 18:50:48 CET 2014


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Fri Dec  5 23:18:09 2014 +0100| [6f2e9c480f3b78e7a138349c3e9d5c864131aeeb] | committer: Jean-Baptiste Kempf

RTP: remove trailing spaces

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6f2e9c480f3b78e7a138349c3e9d5c864131aeeb
---

 modules/stream_out/rtpfmt.c |   18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/modules/stream_out/rtpfmt.c b/modules/stream_out/rtpfmt.c
index 8119a36..17f3478 100644
--- a/modules/stream_out/rtpfmt.c
+++ b/modules/stream_out/rtpfmt.c
@@ -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;
         }
     }



More information about the vlc-commits mailing list