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
973ed38c
Commit
973ed38c
authored
Oct 08, 2006
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix signedness compiler warning
parent
ca50d02b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
modules/demux/mp4/drms.c
modules/demux/mp4/drms.c
+10
-10
No files found.
modules/demux/mp4/drms.c
View file @
973ed38c
...
...
@@ -716,8 +716,8 @@ static void InitShuffle( struct shuffle_s *p_shuffle, uint32_t *p_sys_key,
int32_t
i_hash
;
InitMD5
(
&
md5
);
AddMD5
(
&
md5
,
(
uint8_t
*
)
p_sys_key
,
16
);
AddMD5
(
&
md5
,
(
uint8_t
*
)
p_secret1
,
4
);
AddMD5
(
&
md5
,
(
const
uint8_t
*
)
p_sys_key
,
16
);
AddMD5
(
&
md5
,
(
const
uint8_t
*
)
p_secret1
,
4
);
EndMD5
(
&
md5
);
p_secret1
[
3
]
++
;
...
...
@@ -824,11 +824,11 @@ static void DoShuffle( struct shuffle_s *p_shuffle,
{
p_big_bordel
[
i
]
=
U32_AT
(
p_bordel
+
i
);
}
AddMD5
(
&
md5
,
(
uint8_t
*
)
p_big_bordel
,
64
);
AddMD5
(
&
md5
,
(
const
uint8_t
*
)
p_big_bordel
,
64
);
if
(
p_shuffle
->
i_version
==
0x01000300
)
{
AddMD5
(
&
md5
,
(
uint8_t
*
)
p_secret3
,
sizeof
(
p_secret3
)
);
AddMD5
(
&
md5
,
(
uint8_t
*
)
p_secret4
,
i_secret
);
AddMD5
(
&
md5
,
(
const
uint8_t
*
)
p_secret3
,
sizeof
(
p_secret3
)
);
AddMD5
(
&
md5
,
(
const
uint8_t
*
)
p_secret4
,
i_secret
);
}
EndMD5
(
&
md5
);
...
...
@@ -1534,9 +1534,9 @@ static int GetSystemKey( uint32_t *p_sys_key, vlc_bool_t b_ipod )
else
{
i_ipod_id
=
U64_AT
(
&
i_ipod_id
);
AddMD5
(
&
md5
,
(
uint8_t
*
)
&
i_ipod_id
,
sizeof
(
i_ipod_id
)
);
AddMD5
(
&
md5
,
(
uint8_t
*
)
&
i_ipod_id
,
sizeof
(
i_ipod_id
)
);
AddMD5
(
&
md5
,
(
uint8_t
*
)
&
i_ipod_id
,
sizeof
(
i_ipod_id
)
);
AddMD5
(
&
md5
,
(
const
uint8_t
*
)
&
i_ipod_id
,
sizeof
(
i_ipod_id
)
);
AddMD5
(
&
md5
,
(
const
uint8_t
*
)
&
i_ipod_id
,
sizeof
(
i_ipod_id
)
);
AddMD5
(
&
md5
,
(
const
uint8_t
*
)
&
i_ipod_id
,
sizeof
(
i_ipod_id
)
);
}
EndMD5
(
&
md5
);
...
...
@@ -1905,7 +1905,7 @@ static int HashSystemInfo( uint32_t *p_system_hash )
GetVolumeInformation
(
_T
(
"C:
\\
"
),
NULL
,
0
,
&
i_serial
,
NULL
,
NULL
,
NULL
,
0
);
AddMD5
(
&
md5
,
(
uint8_t
*
)
&
i_serial
,
4
);
AddMD5
(
&
md5
,
(
const
uint8_t
*
)
&
i_serial
,
4
);
for
(
i
=
0
;
i
<
sizeof
(
p_reg_keys
)
/
sizeof
(
p_reg_keys
[
0
]);
i
++
)
{
...
...
@@ -1930,7 +1930,7 @@ static int HashSystemInfo( uint32_t *p_system_hash )
NULL
,
NULL
,
p_reg_buf
,
&
i_size
)
==
ERROR_SUCCESS
)
{
AddMD5
(
&
md5
,
(
uint8_t
*
)
p_reg_buf
,
i_size
);
AddMD5
(
&
md5
,
(
const
uint8_t
*
)
p_reg_buf
,
i_size
);
}
free
(
p_reg_buf
);
...
...
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