Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
f7c3713b
Commit
f7c3713b
authored
May 24, 2004
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* ts: fixed pts, and readding default gathering to make
libmpeg2 happy.
parent
52a52fd1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
modules/demux/ts.c
modules/demux/ts.c
+12
-12
No files found.
modules/demux/ts.c
View file @
f7c3713b
...
...
@@ -903,7 +903,7 @@ static void ParsePES ( demux_t *p_demux, ts_pid_t *pid )
(
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 */
{
...
...
@@ -935,19 +935,19 @@ static void ParsePES ( demux_t *p_demux, ts_pid_t *pid )
if
(
header
[
i_skip
]
&
0x20
)
{
p_pes
->
i_pts
=
((
mtime_t
)(
header
[
i_skip
]
&
0x0e
)
<<
29
)
|
(
mtime_t
)(
header
[
i_skip
+
1
]
<<
22
)
|
((
mtime_t
)(
header
[
i_skip
+
2
]
&
0xfe
)
<<
14
)
|
(
mtime_t
)(
header
[
i_skip
+
3
]
<<
7
)
|
(
mtime_t
)(
header
[
i_skip
+
4
]
>>
1
);
i_pts
=
((
mtime_t
)(
header
[
i_skip
]
&
0x0e
)
<<
29
)
|
(
mtime_t
)(
header
[
i_skip
+
1
]
<<
22
)
|
((
mtime_t
)(
header
[
i_skip
+
2
]
&
0xfe
)
<<
14
)
|
(
mtime_t
)(
header
[
i_skip
+
3
]
<<
7
)
|
(
mtime_t
)(
header
[
i_skip
+
4
]
>>
1
);
if
(
header
[
i_skip
]
&
0x10
)
/* has dts */
{
p_pes
->
i_dts
=
((
mtime_t
)(
header
[
i_skip
+
5
]
&
0x0e
)
<<
29
)
|
(
mtime_t
)(
header
[
i_skip
+
6
]
<<
22
)
|
((
mtime_t
)(
header
[
i_skip
+
7
]
&
0xfe
)
<<
14
)
|
(
mtime_t
)(
header
[
i_skip
+
8
]
<<
7
)
|
(
mtime_t
)(
header
[
i_skip
+
9
]
>>
1
);
i_dts
=
((
mtime_t
)(
header
[
i_skip
+
5
]
&
0x0e
)
<<
29
)
|
(
mtime_t
)(
header
[
i_skip
+
6
]
<<
22
)
|
((
mtime_t
)(
header
[
i_skip
+
7
]
&
0xfe
)
<<
14
)
|
(
mtime_t
)(
header
[
i_skip
+
8
]
<<
7
)
|
(
mtime_t
)(
header
[
i_skip
+
9
]
>>
1
);
i_skip
+=
10
;
}
else
...
...
@@ -1008,7 +1008,7 @@ static void ParsePES ( demux_t *p_demux, ts_pid_t *pid )
p_pes
->
i_pts
=
i_pts
*
100
/
9
;
}
if
(
pid
->
es
->
b_gather
)
if
(
1
)
//
pid->es->b_gather )
{
/* For mpeg4/mscodec we first gather the packet.
* This will make ffmpeg a lot happier */
...
...
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