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
6385a3d7
Commit
6385a3d7
authored
Aug 13, 2011
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PS: fix an error introduced in
f10b7234
Else the check on i doesn't make sense
parent
b57b4dca
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
modules/demux/ps.c
modules/demux/ps.c
+4
-5
No files found.
modules/demux/ps.c
View file @
6385a3d7
...
@@ -238,7 +238,6 @@ static void FindLength( demux_t *p_demux )
...
@@ -238,7 +238,6 @@ static void FindLength( demux_t *p_demux )
{
{
demux_sys_t
*
p_sys
=
p_demux
->
p_sys
;
demux_sys_t
*
p_sys
=
p_demux
->
p_sys
;
int64_t
i_current_pos
=
-
1
,
i_size
=
0
,
i_end
=
0
;
int64_t
i_current_pos
=
-
1
,
i_size
=
0
,
i_end
=
0
;
int
i
;
if
(
!
var_CreateGetBool
(
p_demux
,
"ps-trust-timestamps"
)
)
if
(
!
var_CreateGetBool
(
p_demux
,
"ps-trust-timestamps"
)
)
return
;
return
;
...
@@ -247,7 +246,7 @@ static void FindLength( demux_t *p_demux )
...
@@ -247,7 +246,7 @@ static void FindLength( demux_t *p_demux )
{
{
p_sys
->
i_length
=
0
;
p_sys
->
i_length
=
0
;
/* Check beginning */
/* Check beginning */
i
=
0
;
i
nt
i
=
0
;
i_current_pos
=
stream_Tell
(
p_demux
->
s
);
i_current_pos
=
stream_Tell
(
p_demux
->
s
);
while
(
vlc_object_alive
(
p_demux
)
&&
i
<
40
&&
Demux2
(
p_demux
,
false
)
>
0
)
i
++
;
while
(
vlc_object_alive
(
p_demux
)
&&
i
<
40
&&
Demux2
(
p_demux
,
false
)
>
0
)
i
++
;
...
@@ -255,13 +254,13 @@ static void FindLength( demux_t *p_demux )
...
@@ -255,13 +254,13 @@ static void FindLength( demux_t *p_demux )
i_size
=
stream_Size
(
p_demux
->
s
);
i_size
=
stream_Size
(
p_demux
->
s
);
i_end
=
__MAX
(
0
,
__MIN
(
200000
,
i_size
)
);
i_end
=
__MAX
(
0
,
__MIN
(
200000
,
i_size
)
);
stream_Seek
(
p_demux
->
s
,
i_size
-
i_end
);
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
=
0
;
while
(
vlc_object_alive
(
p_demux
)
&&
i
<
40
&&
Demux2
(
p_demux
,
true
)
>
0
)
i
++
;
if
(
i_current_pos
>=
0
)
stream_Seek
(
p_demux
->
s
,
i_current_pos
);
if
(
i_current_pos
>=
0
)
stream_Seek
(
p_demux
->
s
,
i_current_pos
);
}
}
for
(
i
=
0
;
i
<
PS_TK_COUNT
;
i
++
)
for
(
i
nt
i
=
0
;
i
<
PS_TK_COUNT
;
i
++
)
{
{
ps_track_t
*
tk
=
&
p_sys
->
tk
[
i
];
ps_track_t
*
tk
=
&
p_sys
->
tk
[
i
];
if
(
tk
->
i_first_pts
>=
0
&&
tk
->
i_last_pts
>
0
)
if
(
tk
->
i_first_pts
>=
0
&&
tk
->
i_last_pts
>
0
)
...
...
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