Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
libdvdcss
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
3
Issues
3
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
VideoLAN
libdvdcss
Commits
ec7c3a56
Commit
ec7c3a56
authored
Jan 28, 2015
by
Thomas Guillem
Committed by
Jean-Baptiste Kempf
Jan 28, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dvdcss_open_stream: cast to off_t
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
cce6baf1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/device.c
src/device.c
+2
-2
No files found.
src/device.c
View file @
ec7c3a56
...
...
@@ -546,7 +546,7 @@ static int libc_seek( dvdcss_t dvdcss, int i_blocks )
static
int
stream_seek
(
dvdcss_t
dvdcss
,
int
i_blocks
)
{
off_t
i_seek
=
i_blocks
*
DVDCSS_BLOCK_SIZE
;
off_t
i_seek
=
(
off_t
)
i_blocks
*
(
off_t
)
DVDCSS_BLOCK_SIZE
;
if
(
!
dvdcss
->
p_stream_cb
->
pf_seek
)
return
-
1
;
...
...
@@ -642,7 +642,7 @@ static int stream_read ( dvdcss_t dvdcss, void *p_buffer, int i_blocks )
{
off_t
i_size
,
i_ret
,
i_ret_blocks
;
i_size
=
i_blocks
*
DVDCSS_BLOCK_SIZE
;
i_size
=
(
off_t
)
i_blocks
*
(
off_t
)
DVDCSS_BLOCK_SIZE
;
if
(
!
dvdcss
->
p_stream_cb
->
pf_read
)
return
-
1
;
...
...
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