Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
1570d3b9
Commit
1570d3b9
authored
Jan 30, 2004
by
Laurent Aimar
Browse files
* ps: lalalala, fixed a bug in dts/pts parsing.
parent
43ef6e10
Changes
1
Show whitespace changes
Inline
Side-by-side
modules/demux/ps.h
View file @
1570d3b9
...
...
@@ -2,7 +2,7 @@
* ps.h: Program Stream demuxer helper
*****************************************************************************
* Copyright (C) 2004 VideoLAN
* $Id: ps.h,v 1.
4
2004/01/
29 18:37:05
fenrir Exp $
* $Id: ps.h,v 1.
5
2004/01/
30 01:09:24
fenrir Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
...
...
@@ -239,15 +239,15 @@ static inline int ps_pkt_parse_pes( block_t *p_pes, int i_skip_extra )
(
mtime_t
)(
header
[
10
]
<<
22
)
|
((
mtime_t
)(
header
[
11
]
&
0xfe
)
<<
14
)
|
(
mtime_t
)(
header
[
12
]
<<
7
)
|
(
mtime_t
)(
header
[
1
2
]
>>
1
);
(
mtime_t
)(
header
[
1
3
]
>>
1
);
if
(
header
[
7
]
&
0x40
)
/* has dts */
{
p_pes
->
i_dts
=
((
mtime_t
)(
header
[
1
3
]
&
0x0e
)
<<
29
)
|
(
mtime_t
)(
header
[
1
4
]
<<
22
)
|
((
mtime_t
)(
header
[
1
5
]
&
0xfe
)
<<
14
)
|
(
mtime_t
)(
header
[
1
6
]
<<
7
)
|
(
mtime_t
)(
header
[
1
7
]
>>
1
);
p_pes
->
i_dts
=
((
mtime_t
)(
header
[
1
4
]
&
0x0e
)
<<
29
)
|
(
mtime_t
)(
header
[
1
5
]
<<
22
)
|
((
mtime_t
)(
header
[
1
6
]
&
0xfe
)
<<
14
)
|
(
mtime_t
)(
header
[
1
7
]
<<
7
)
|
(
mtime_t
)(
header
[
1
8
]
>>
1
);
}
}
}
...
...
Write
Preview
Supports
Markdown
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