Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
bitstream
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
bitstream
Commits
44df2d61
Commit
44df2d61
authored
Sep 23, 2010
by
Christophe Massiot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* examples/dvb_print_si.c: Check EIT's consistency.
parent
d2f0a96a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
examples/dvb_print_si.c
examples/dvb_print_si.c
+22
-0
No files found.
examples/dvb_print_si.c
View file @
44df2d61
...
@@ -390,6 +390,20 @@ static void handle_sdt_section(uint16_t i_pid, uint8_t *p_section)
...
@@ -390,6 +390,20 @@ static void handle_sdt_section(uint16_t i_pid, uint8_t *p_section)
handle_sdt
();
handle_sdt
();
}
}
/*****************************************************************************
* handle_eit
*****************************************************************************/
static
void
handle_eit_section
(
uint16_t
i_pid
,
uint8_t
*
p_eit
)
{
if
(
i_pid
!=
EIT_PID
||
!
eit_validate
(
p_eit
))
{
printf
(
"invalid EIT section received on PID %hu
\n
"
,
i_pid
);
free
(
p_eit
);
return
;
}
free
(
p_eit
);
}
/*****************************************************************************
/*****************************************************************************
* handle_section
* handle_section
*****************************************************************************/
*****************************************************************************/
...
@@ -421,6 +435,13 @@ static void handle_section(uint16_t i_pid, uint8_t *p_section)
...
@@ -421,6 +435,13 @@ static void handle_section(uint16_t i_pid, uint8_t *p_section)
break
;
break
;
default:
default:
if
(
i_table_id
==
EIT_TABLE_ID_PF_ACTUAL
||
(
i_table_id
>=
EIT_TABLE_ID_SCHED_ACTUAL_FIRST
&&
i_table_id
<=
EIT_TABLE_ID_SCHED_ACTUAL_LAST
))
{
handle_eit_section
(
i_pid
,
p_section
);
break
;
}
free
(
p_section
);
free
(
p_section
);
break
;
break
;
}
}
...
@@ -483,6 +504,7 @@ int main(int i_argc, char **ppsz_argv)
...
@@ -483,6 +504,7 @@ int main(int i_argc, char **ppsz_argv)
p_pids
[
PAT_PID
].
i_psi_refcount
++
;
p_pids
[
PAT_PID
].
i_psi_refcount
++
;
p_pids
[
NIT_PID
].
i_psi_refcount
++
;
p_pids
[
NIT_PID
].
i_psi_refcount
++
;
p_pids
[
SDT_PID
].
i_psi_refcount
++
;
p_pids
[
SDT_PID
].
i_psi_refcount
++
;
p_pids
[
EIT_PID
].
i_psi_refcount
++
;
while
(
!
feof
(
stdin
)
&&
!
ferror
(
stdin
))
{
while
(
!
feof
(
stdin
)
&&
!
ferror
(
stdin
))
{
uint8_t
p_ts
[
TS_SIZE
];
uint8_t
p_ts
[
TS_SIZE
];
...
...
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