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
a9852371
Commit
a9852371
authored
Aug 16, 2011
by
Tobias Güntner
Committed by
Rémi Denis-Courmont
Aug 22, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merge if conditions
Signed-off-by:
Rémi Denis-Courmont
<
remi@remlab.net
>
parent
bdb70f97
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
9 deletions
+10
-9
modules/demux/ps.c
modules/demux/ps.c
+10
-9
No files found.
modules/demux/ps.c
View file @
a9852371
...
...
@@ -260,20 +260,21 @@ static void FindLength( demux_t *p_demux )
if
(
i_current_pos
>=
0
)
stream_Seek
(
p_demux
->
s
,
i_current_pos
);
}
/* Find the longest track */
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
>
tk
->
i_first_pts
)
if
(
tk
->
i_first_pts
>=
0
&&
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
;
if
(
i_length
>
p_sys
->
i_length
)
{
int64_t
i_length
=
(
int64_t
)
tk
->
i_last_pts
-
tk
->
i_first_pts
;
if
(
i_length
>
p_sys
->
i_length
)
{
p_sys
->
i_length
=
i_length
;
p_sys
->
i_time_track
=
i
;
msg_Dbg
(
p_demux
,
"we found a length of: %"
PRId64
,
p_sys
->
i_length
);
}
p_sys
->
i_length
=
i_length
;
p_sys
->
i_time_track
=
i
;
msg_Dbg
(
p_demux
,
"we found a length of: %"
PRId64
,
p_sys
->
i_length
);
}
}
}
}
...
...
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