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
8d659bd0
Commit
8d659bd0
authored
Aug 25, 2011
by
Georgi Chorbadzhiyski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move MAX_PIDS definition to dvblast.h and use it.
parent
b54e09b5
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
demux.c
demux.c
+2
-3
dvblast.h
dvblast.h
+1
-0
No files found.
demux.c
View file @
8d659bd0
...
@@ -54,7 +54,6 @@ extern bool b_enable_ecm;
...
@@ -54,7 +54,6 @@ extern bool b_enable_ecm;
/*****************************************************************************
/*****************************************************************************
* Local declarations
* Local declarations
*****************************************************************************/
*****************************************************************************/
#define MAX_PIDS 8192
#define MIN_SECTION_FRAGMENT PSI_HEADER_SIZE_SYNTAX1
#define MIN_SECTION_FRAGMENT PSI_HEADER_SIZE_SYNTAX1
typedef
struct
ts_pid_t
typedef
struct
ts_pid_t
...
@@ -143,7 +142,7 @@ void demux_Open( void )
...
@@ -143,7 +142,7 @@ void demux_Open( void )
pf_Open
();
pf_Open
();
for
(
i
=
0
;
i
<
8192
;
i
++
)
for
(
i
=
0
;
i
<
MAX_PIDS
;
i
++
)
{
{
p_pids
[
i
].
i_last_cc
=
-
1
;
p_pids
[
i
].
i_last_cc
=
-
1
;
p_pids
[
i
].
i_demux_fd
=
-
1
;
p_pids
[
i
].
i_demux_fd
=
-
1
;
...
@@ -198,7 +197,7 @@ void demux_Close( void )
...
@@ -198,7 +197,7 @@ void demux_Close( void )
psi_table_free
(
pp_current_sdt_sections
);
psi_table_free
(
pp_current_sdt_sections
);
psi_table_free
(
pp_next_sdt_sections
);
psi_table_free
(
pp_next_sdt_sections
);
for
(
i
=
0
;
i
<
8192
;
i
++
)
for
(
i
=
0
;
i
<
MAX_PIDS
;
i
++
)
{
{
free
(
p_pids
[
i
].
p_psi_buffer
);
free
(
p_pids
[
i
].
p_psi_buffer
);
for
(
j
=
0
;
j
<
p_pids
[
i
].
i_nb_outputs
;
j
++
)
for
(
j
=
0
;
j
<
p_pids
[
i
].
i_nb_outputs
;
j
++
)
...
...
dvblast.h
View file @
8d659bd0
...
@@ -30,6 +30,7 @@
...
@@ -30,6 +30,7 @@
#define DEFAULT_PORT 3001
#define DEFAULT_PORT 3001
#define TS_SIZE 188
#define TS_SIZE 188
#define MAX_PIDS 8192
#define DEFAULT_IPV4_MTU 1500
#define DEFAULT_IPV4_MTU 1500
#define DEFAULT_IPV6_MTU 1280
#define DEFAULT_IPV6_MTU 1280
#define PADDING_PID 8191
#define PADDING_PID 8191
...
...
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