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
6dbd8e7f
Commit
6dbd8e7f
authored
May 23, 2011
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
examples/dvbinfo/libdvbpsi.c: Fix range checking.
parent
b557c99c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
examples/dvbinfo/libdvbpsi.c
examples/dvbinfo/libdvbpsi.c
+5
-6
No files found.
examples/dvbinfo/libdvbpsi.c
View file @
6dbd8e7f
...
...
@@ -622,10 +622,10 @@ static char const* GetTypeName(uint8_t type)
case
0x1B
:
return
"AVC video stream as defined in ITU-T Rec. H.264 | ISO/IEC 14496-10 Video"
;
case
0x7F
:
return
"IPMP stream"
;
default:
if
((
type
>=
0x80
)
&&
(
type
<=
0xFF
))
return
"User Private"
;
else
if
((
type
>=
0x1C
)
&&
(
type
<=
0x7E
))
if
((
type
>=
0x1C
)
&&
(
type
<=
0x7E
))
return
"ITU-T Rec. H.222.0 | ISO/IEC 13818-1 Reserved"
;
else
if
(
type
>=
0x80
)
/* 0x80 - 0xFF */
return
"User Private"
;
else
return
"Unknown"
;
break
;
...
...
@@ -825,9 +825,8 @@ static void DumpCUEIDescriptor(dvbpsi_cuei_dr_t* p_cuei_descriptor)
if
((
p_cuei_descriptor
->
i_cue_stream_type
>=
0x05
)
&&
(
p_cuei_descriptor
->
i_cue_stream_type
<=
0x7f
))
cuei_stream_type
=
"Reserved"
;
else
if
((
p_cuei_descriptor
->
i_cue_stream_type
>=
0x80
)
&&
(
p_cuei_descriptor
->
i_cue_stream_type
<=
0xff
))
cuei_stream_type
=
"User defined"
;
else
if
((
p_cuei_descriptor
->
i_cue_stream_type
>=
0x80
))
cuei_stream_type
=
"User defined"
;
/* 0x80 - 0xFF */
break
;
}
printf
(
"CUE Identifier stream type: (%0xd) %s
\n
"
,
...
...
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