Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
dvblast
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
dvblast
Commits
6921db2a
Commit
6921db2a
authored
Oct 06, 2009
by
Christophe Massiot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* demux.c: Randomize TSID in unique TSID mode.
parent
60b9d72c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
4 deletions
+7
-4
demux.c
demux.c
+4
-4
dvblast.h
dvblast.h
+1
-0
output.c
output.c
+2
-0
No files found.
demux.c
View file @
6921db2a
...
...
@@ -746,8 +746,8 @@ static void SendEIT( dvbpsi_psi_section_t *p_section, uint16_t i_sid,
{
if
(
b_unique_tsid
)
{
p_section
->
p_data
[
8
]
=
(
i_s
id
>>
8
)
&
0xff
;
p_section
->
p_data
[
9
]
=
i_s
id
&
0xff
;
p_section
->
p_data
[
8
]
=
(
pp_outputs
[
i
]
->
i_ts_
id
>>
8
)
&
0xff
;
p_section
->
p_data
[
9
]
=
pp_outputs
[
i
]
->
i_ts_
id
&
0xff
;
}
dvbpsi_BuildPSISection
(
p_section
);
...
...
@@ -800,7 +800,7 @@ static void NewPAT( output_t *p_output )
}
if
(
b_unique_tsid
)
dvbpsi_InitPAT
(
&
pat
,
p_output
->
i_
s
id
,
p_output
->
i_pat_version
,
1
);
dvbpsi_InitPAT
(
&
pat
,
p_output
->
i_
ts_
id
,
p_output
->
i_pat_version
,
1
);
else
dvbpsi_InitPAT
(
&
pat
,
p_current_pat
->
i_ts_id
,
p_output
->
i_pat_version
,
1
);
...
...
@@ -1301,7 +1301,7 @@ static void SDTCallback( void *_unused, dvbpsi_sdt_t *p_sdt )
p_new_sdt
=
malloc
(
sizeof
(
dvbpsi_sdt_t
));
if
(
b_unique_tsid
)
dvbpsi_InitSDT
(
p_new_sdt
,
p
_service
->
i_service
_id
,
dvbpsi_InitSDT
(
p_new_sdt
,
p
p_outputs
[
i
]
->
i_ts
_id
,
p_sdt
->
i_version
,
p_sdt
->
b_current_next
,
p_sdt
->
i_network_id
);
else
...
...
dvblast.h
View file @
6921db2a
...
...
@@ -68,6 +68,7 @@ typedef struct output_t
dvbpsi_psi_section_t
*
p_sdt_section
;
uint8_t
i_sdt_cc
;
uint8_t
i_eit_cc
;
uint16_t
i_ts_id
;
/* configuration */
uint16_t
i_sid
;
/* 0 if raw mode */
...
...
output.c
View file @
6921db2a
...
...
@@ -94,6 +94,8 @@ int output_Init( output_t *p_output, in_addr_t i_maddr, uint16_t i_port )
p_output
->
p_pat_section
=
NULL
;
p_output
->
p_pmt_section
=
NULL
;
p_output
->
p_sdt_section
=
NULL
;
if
(
b_unique_tsid
)
p_output
->
i_ts_id
=
rand
()
&
0xffff
;
p_output
->
i_ref_timestamp
=
0
;
p_output
->
i_ref_wallclock
=
0
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment