[vlc-devel] commit: RTP: need one more bit for TTL -1 (default) value ( Rémi Denis-Courmont )

git version control git at videolan.org
Sat Sep 20 16:25:56 CEST 2008


vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Sat Sep 20 17:04:26 2008 +0300| [1ada19aa7d249880eea20550bfdeaef2ffb7a72f] | committer: Rémi Denis-Courmont 

RTP: need one more bit for TTL -1 (default) value

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

 modules/stream_out/rtp.c |   11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/modules/stream_out/rtp.c b/modules/stream_out/rtp.c
index 6249494..ea3b1d2 100644
--- a/modules/stream_out/rtp.c
+++ b/modules/stream_out/rtp.c
@@ -263,16 +263,15 @@ struct sout_stream_sys_t
 
     /* */
     char     *psz_destination;
-    uint8_t   proto;
-    uint8_t   i_ttl;
     uint16_t  i_port;
     uint16_t  i_port_audio;
     uint16_t  i_port_video;
-    bool b_latm;
-    bool rtcp_mux;
-
+    uint8_t   proto;
+    bool      rtcp_mux;
+    int       i_ttl:9;
     /* when need to use a private one or when using muxer */
-    int i_payload_type;
+    unsigned  i_payload_type:7;
+    bool      b_latm;
 
     /* in case we do TS/PS over rtp */
     sout_mux_t        *p_mux;




More information about the vlc-devel mailing list