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
3dff081e
Commit
3dff081e
authored
Mar 27, 2011
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PVA: comment fixing and documentation references
parent
695b9cd7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
modules/demux/pva.c
modules/demux/pva.c
+7
-3
No files found.
modules/demux/pva.c
View file @
3dff081e
...
...
@@ -84,7 +84,7 @@ static int Open( vlc_object_t *p_this )
es_format_t
fmt
;
const
uint8_t
*
p_peek
;
if
(
stream_Peek
(
p_demux
->
s
,
&
p_peek
,
5
)
<
5
)
return
VLC_EGENERIC
;
if
(
stream_Peek
(
p_demux
->
s
,
&
p_peek
,
8
)
<
8
)
return
VLC_EGENERIC
;
if
(
p_peek
[
0
]
!=
'A'
||
p_peek
[
1
]
!=
'V'
||
p_peek
[
4
]
!=
0x55
)
{
/* In case we had forced this demuxer we try to resynch */
...
...
@@ -133,6 +133,8 @@ static void Close( vlc_object_t *p_this )
/*****************************************************************************
* Demux:
*****************************************************************************
* See http://multimedia.cx/mirror/av_format_v1.pdf
*****************************************************************************/
static
int
Demux
(
demux_t
*
p_demux
)
{
...
...
@@ -254,7 +256,7 @@ static int Demux( demux_t *p_demux )
p_frame
->
p_buffer
+=
8
;
p_frame
->
i_buffer
-=
8
;
/* XXX this a hack, some streams aren't compliant and
* do
es
n't set pes_start flag */
* don't set pes_start flag */
if
(
p_sys
->
p_pes
&&
p_frame
->
i_buffer
>
4
&&
p_frame
->
p_buffer
[
0
]
==
0x00
&&
p_frame
->
p_buffer
[
1
]
==
0x00
&&
...
...
@@ -390,6 +392,7 @@ static void ParsePES( demux_t *p_demux )
/* FIXME find real max size */
block_ChainExtract
(
p_pes
,
hdr
,
30
);
/* See §2.4.3.6 of ISO 13818-1 */
if
(
hdr
[
0
]
!=
0
||
hdr
[
1
]
!=
0
||
hdr
[
2
]
!=
1
)
{
msg_Warn
(
p_demux
,
"invalid hdr [0x%2.2x:%2.2x:%2.2x:%2.2x]"
,
...
...
@@ -397,7 +400,8 @@ static void ParsePES( demux_t *p_demux )
block_ChainRelease
(
p_pes
);
return
;
}
GetWBE
(
&
hdr
[
4
]
);
/* i_pes_size */
// hdr[4] i_pes_size, 2 bytes
// hdr[6] Marker -> original_or_copy
/* we assume mpeg2 PES */
i_skip
=
hdr
[
8
]
+
9
;
...
...
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