Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libdvbpsi
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
libdvbpsi
Commits
21db603c
Commit
21db603c
authored
Dec 08, 2017
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
descriptor: 0x41: correct max service count
parent
25707240
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
src/descriptors/dr_41.c
src/descriptors/dr_41.c
+4
-2
src/descriptors/dr_41.h
src/descriptors/dr_41.h
+1
-1
No files found.
src/descriptors/dr_41.c
View file @
21db603c
...
...
@@ -39,6 +39,8 @@
#include "dr_41.h"
#define DVBPSI_SLS_DR_MAX (84)
/*****************************************************************************
* dvbpsi_DecodeServiceListDr
*****************************************************************************/
...
...
@@ -59,7 +61,7 @@ dvbpsi_service_list_dr_t* dvbpsi_DecodeServiceListDr(
unsigned
int
service_count
=
p_descriptor
->
i_length
/
3
;
if
((
p_descriptor
->
i_length
<
1
)
||
(
p_descriptor
->
i_length
%
3
!=
0
)
||
(
service_count
>
63
))
(
service_count
>
DVBPSI_SLS_DR_MAX
-
1
))
return
NULL
;
/* Allocate memory */
...
...
@@ -91,7 +93,7 @@ dvbpsi_descriptor_t * dvbpsi_GenServiceListDr(
bool
b_duplicate
)
{
/* Check the length */
if
(
p_decoded
->
i_service_count
>
63
)
if
(
p_decoded
->
i_service_count
>
DVBPSI_SLS_DR_MAX
-
1
)
return
NULL
;
/* Create the descriptor */
...
...
src/descriptors/dr_41.h
View file @
21db603c
...
...
@@ -59,7 +59,7 @@ typedef struct dvbpsi_service_list_dr_s
struct
{
uint16_t
i_service_id
;
/*!< service id */
uint8_t
i_service_type
;
/*!< service type */
}
i_service
[
6
4
];
/*!< array of services */
}
i_service
[
8
4
];
/*!< array of services */
}
dvbpsi_service_list_dr_t
;
...
...
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