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
752b3e28
Commit
752b3e28
authored
Dec 24, 2014
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dr_55.c: Fix CID #17250
parent
dc606120
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
4 deletions
+10
-4
src/descriptors/dr_55.c
src/descriptors/dr_55.c
+9
-3
src/descriptors/dr_56.h
src/descriptors/dr_56.h
+1
-1
No files found.
src/descriptors/dr_55.c
View file @
752b3e28
...
...
@@ -92,13 +92,19 @@ dvbpsi_parental_rating_dr_t * dvbpsi_DecodeParentalRatingDr(
dvbpsi_descriptor_t
*
dvbpsi_GenParentalRatingDr
(
dvbpsi_parental_rating_dr_t
*
p_decoded
,
bool
b_duplicate
)
{
if
(
p_decoded
->
i_ratings_number
>
DVBPSI_PARENTAL_RATING_DR_MAX
)
{
uint8_t
i_length
;
if
(
p_decoded
->
i_ratings_number
>=
DVBPSI_PARENTAL_RATING_DR_MAX
)
{
i_length
=
(
DVBPSI_PARENTAL_RATING_DR_MAX
-
1
)
*
4
;
p_decoded
->
i_ratings_number
=
DVBPSI_PARENTAL_RATING_DR_MAX
;
}
else
i_length
=
p_decoded
->
i_ratings_number
*
4
;
/* Create the descriptor */
dvbpsi_descriptor_t
*
p_descriptor
=
dvbpsi_NewDescriptor
(
0x55
,
p_decoded
->
i_ratings_number
*
4
,
NULL
);
dvbpsi_NewDescriptor
(
0x55
,
i_length
,
NULL
);
if
(
!
p_descriptor
)
return
NULL
;
...
...
src/descriptors/dr_56.h
View file @
752b3e28
...
...
@@ -67,7 +67,7 @@ typedef struct dvbpsi_teletextpage_s
* \brief Maximum number of dvbpsi_teletextpage_t entries present in
* @see dvbpsi_teletext_dr_t
*/
#define DVBPSI_TELETEXT_DR_MAX
64
#define DVBPSI_TELETEXT_DR_MAX
51
/*****************************************************************************
* dvbpsi_teletext_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