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
63a3b568
Commit
63a3b568
authored
Aug 12, 2014
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PS: fix length computation
Should close #9412 Ref #7303 #8180 #7889 #10123 #2608
parent
58c4552a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
modules/demux/ps.c
modules/demux/ps.c
+3
-3
No files found.
modules/demux/ps.c
View file @
63a3b568
...
...
@@ -255,11 +255,11 @@ static void FindLength( demux_t *p_demux )
/* Check end */
i_size
=
stream_Size
(
p_demux
->
s
);
i_end
=
VLC_CLIP
(
i_size
,
0
,
20000
);
i_end
=
VLC_CLIP
(
i_size
,
0
,
20000
0
);
stream_Seek
(
p_demux
->
s
,
i_size
-
i_end
);
i
=
0
;
while
(
vlc_object_alive
(
p_demux
)
&&
i
<
40
&&
Demux2
(
p_demux
,
true
)
>
0
)
i
++
;
while
(
vlc_object_alive
(
p_demux
)
&&
i
<
40
0
&&
Demux2
(
p_demux
,
true
)
>
0
)
i
++
;
if
(
i_current_pos
>=
0
)
stream_Seek
(
p_demux
->
s
,
i_current_pos
);
}
...
...
@@ -267,7 +267,7 @@ static void FindLength( demux_t *p_demux )
for
(
int
i
=
0
;
i
<
PS_TK_COUNT
;
i
++
)
{
ps_track_t
*
tk
=
&
p_sys
->
tk
[
i
];
if
(
tk
->
i_
first_pts
>=
0
&&
tk
->
i_
last_pts
>
0
&&
if
(
tk
->
i_last_pts
>
0
&&
tk
->
i_last_pts
>
tk
->
i_first_pts
)
{
int64_t
i_length
=
(
int64_t
)
tk
->
i_last_pts
-
tk
->
i_first_pts
;
...
...
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