[vlc-commits] mux: ts: useprivate onid limits for nid

Francois Cartegnie git at videolan.org
Mon Apr 25 14:41:18 CEST 2016


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Sun Apr 24 13:23:32 2016 +0200| [88891bc11b4bf94524dba41c7fe844079dd446cb] | committer: Francois Cartegnie

mux: ts: useprivate onid limits for nid

as it is also used for original network id value,
we need to max its value to 0xFFFA

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

 modules/mux/mpeg/ts.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/mux/mpeg/ts.c b/modules/mux/mpeg/ts.c
index 89fe735..342950f 100644
--- a/modules/mux/mpeg/ts.c
+++ b/modules/mux/mpeg/ts.c
@@ -596,7 +596,7 @@ static int Open( vlc_object_t *p_this )
     if ( val.i_int )
         p_sys->sdt.i_netid = val.i_int;
     else
-        p_sys->sdt.i_netid = 0xff00 | ( nrand48(subi) & 0xff );
+        p_sys->sdt.i_netid = 0xff00 | ( nrand48(subi) & 0xfa );
 
     p_sys->i_pmt_version_number = nrand48(subi) & 0x1f;
     p_sys->sdt.ts.i_pid = 0x11;



More information about the vlc-commits mailing list