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
65dd37c3
Commit
65dd37c3
authored
Aug 20, 2010
by
Christophe Massiot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* dvb/si.h: Improve validation of SDT.
parent
0b8f8669
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
3 deletions
+11
-3
dvb/si.h
dvb/si.h
+10
-2
mpeg/psi.h
mpeg/psi.h
+1
-1
No files found.
dvb/si.h
View file @
65dd37c3
...
...
@@ -997,7 +997,7 @@ static inline bool nit_table_validate(uint8_t **pp_sections)
while
((
p_ts
=
nit_get_ts
(
p_section
,
j
))
!=
NULL
)
{
j
++
;
/* check that the
program number if
not already in the table */
/* check that the
TS is
not already in the table */
if
(
nit_table_find_ts
(
pp_sections
,
nitn_get_tsid
(
p_ts
),
nitn_get_onid
(
p_ts
))
!=
p_ts
)
return
false
;
...
...
@@ -1185,11 +1185,19 @@ static inline bool sdt_table_validate(uint8_t **pp_sections)
for
(
i
=
0
;
i
<=
i_last_section
;
i
++
)
{
uint8_t
*
p_section
=
psi_table_get_section
(
pp_sections
,
i
);
uint8_t
*
p_
ts
;
uint8_t
*
p_
service
;
int
j
=
0
;
if
(
!
psi_check_crc
(
p_section
))
return
false
;
while
((
p_service
=
sdt_get_service
(
p_section
,
j
))
!=
NULL
)
{
j
++
;
/* check that the service is not already in the table */
if
(
sdt_table_find_service
(
pp_sections
,
sdtn_get_sid
(
p_service
))
!=
p_service
)
return
false
;
}
}
return
true
;
...
...
mpeg/psi.h
View file @
65dd37c3
...
...
@@ -823,7 +823,7 @@ static inline bool pat_table_validate(uint8_t **pp_sections)
while
((
p_program
=
pat_get_program
(
p_section
,
j
))
!=
NULL
)
{
j
++
;
/* check that the program number i
f
not already in the table */
/* check that the program number i
s
not already in the table */
if
(
pat_table_find_program
(
pp_sections
,
patn_get_program
(
p_program
))
!=
p_program
)
return
false
;
...
...
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