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
5adde00c
Commit
5adde00c
authored
Feb 17, 2011
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
VCD: fix sign comparison error
parent
73d27a4e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
modules/access/vcd/vcd.c
modules/access/vcd/vcd.c
+4
-2
No files found.
modules/access/vcd/vcd.c
View file @
5adde00c
...
...
@@ -389,7 +389,8 @@ static block_t *Block( access_t *p_access )
if
(
t
->
i_seekpoint
>
0
&&
p_access
->
info
.
i_seekpoint
+
1
<
t
->
i_seekpoint
&&
p_access
->
info
.
i_pos
+
i_read
*
VCD_DATA_SIZE
>=
(
int64_t
)
/* Unlikely to go over 8192 PetaB */
(
p_access
->
info
.
i_pos
+
i_read
*
VCD_DATA_SIZE
)
>=
t
->
seekpoint
[
p_access
->
info
.
i_seekpoint
+
1
]
->
i_byte_offset
)
{
msg_Dbg
(
p_access
,
"seekpoint change"
);
...
...
@@ -423,7 +424,8 @@ static int Seek( access_t *p_access, uint64_t i_pos )
for
(
i_seekpoint
=
0
;
i_seekpoint
<
t
->
i_seekpoint
;
i_seekpoint
++
)
{
if
(
i_seekpoint
+
1
>=
t
->
i_seekpoint
)
break
;
if
(
i_pos
<
t
->
seekpoint
[
i_seekpoint
+
1
]
->
i_byte_offset
)
break
;
if
(
0
<
t
->
seekpoint
[
i_seekpoint
+
1
]
->
i_byte_offset
&&
i_pos
<
(
uint64_t
)
t
->
seekpoint
[
i_seekpoint
+
1
]
->
i_byte_offset
)
break
;
}
if
(
i_seekpoint
!=
p_access
->
info
.
i_seekpoint
)
...
...
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