Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
vlc
Commits
083295e7
Commit
083295e7
authored
Aug 30, 2004
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/demux/ps.h: fixed parsing of system header.
parent
3cef8ec1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
modules/demux/ps.h
modules/demux/ps.h
+9
-5
No files found.
modules/demux/ps.h
View file @
083295e7
...
...
@@ -188,12 +188,18 @@ static inline int ps_pkt_parse_system( block_t *p_pkt,
{
uint8_t
*
p
=
&
p_pkt
->
p_buffer
[
6
+
3
+
1
+
1
+
1
];
/* System header is not useable if it references private streams (0xBD)
* or 'all audio streams' (0xB8) or 'all video streams' (0xB9) */
while
(
p
<
&
p_pkt
->
p_buffer
[
p_pkt
->
i_buffer
]
)
{
/* msg_Dbg( p_demux, " SYSTEM_START_CODE: id=0x%x", p[0] ); */
if
(
p
[
0
]
>=
0xc0
)
/* And != 0xbd */
int
i_id
=
p
[
0
];
/* fprintf( stderr, " SYSTEM_START_CODEEE: id=0x%x\n", p[0] ); */
if
(
p
[
0
]
>=
0xBC
||
p
[
0
]
==
0xB8
||
p
[
0
]
==
0xB9
)
p
+=
2
;
p
++
;
if
(
p
[
0
]
>=
0xc0
)
{
int
i_id
=
p
[
0
];
int
i_tk
=
PS_ID_TO_TK
(
i_id
);
if
(
!
tk
[
i_tk
].
b_seen
)
...
...
@@ -203,9 +209,7 @@ static inline int ps_pkt_parse_system( block_t *p_pkt,
tk
[
i_tk
].
b_seen
=
VLC_TRUE
;
}
}
p
+=
2
;
}
p
++
;
}
return
VLC_SUCCESS
;
}
...
...
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