Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
7c7037db
Commit
7c7037db
authored
Aug 28, 2011
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Guid: rename fields to better match Microsoft usage
parent
7e08d2af
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
25 deletions
+25
-25
modules/access/mms/asf.c
modules/access/mms/asf.c
+4
-4
modules/access/mms/buffer.c
modules/access/mms/buffer.c
+4
-4
modules/demux/asf/libasf_guid.h
modules/demux/asf/libasf_guid.h
+17
-17
No files found.
modules/access/mms/asf.c
View file @
7c7037db
...
@@ -33,10 +33,10 @@
...
@@ -33,10 +33,10 @@
void
GenerateGuid
(
guid_t
*
p_guid
)
void
GenerateGuid
(
guid_t
*
p_guid
)
{
{
p_guid
->
v
1
=
0xbabac001
;
p_guid
->
Data
1
=
0xbabac001
;
vlc_rand_bytes
(
&
p_guid
->
v2
,
sizeof
(
p_guid
->
v
2
));
vlc_rand_bytes
(
&
p_guid
->
Data2
,
sizeof
(
p_guid
->
Data
2
));
vlc_rand_bytes
(
&
p_guid
->
v3
,
sizeof
(
p_guid
->
v
3
));
vlc_rand_bytes
(
&
p_guid
->
Data3
,
sizeof
(
p_guid
->
Data
3
));
vlc_rand_bytes
(
p_guid
->
v4
,
sizeof
(
p_guid
->
v
4
));
vlc_rand_bytes
(
p_guid
->
Data4
,
sizeof
(
p_guid
->
Data
4
));
}
}
void
asf_HeaderParse
(
asf_header_t
*
hdr
,
void
asf_HeaderParse
(
asf_header_t
*
hdr
,
...
...
modules/access/mms/buffer.c
View file @
7c7037db
...
@@ -213,12 +213,12 @@ void var_buffer_getguid( var_buffer_t *p_buf, guid_t *p_guid )
...
@@ -213,12 +213,12 @@ void var_buffer_getguid( var_buffer_t *p_buf, guid_t *p_guid )
{
{
int
i
;
int
i
;
p_guid
->
v
1
=
var_buffer_get32
(
p_buf
);
p_guid
->
Data
1
=
var_buffer_get32
(
p_buf
);
p_guid
->
v
2
=
var_buffer_get16
(
p_buf
);
p_guid
->
Data
2
=
var_buffer_get16
(
p_buf
);
p_guid
->
v
3
=
var_buffer_get16
(
p_buf
);
p_guid
->
Data
3
=
var_buffer_get16
(
p_buf
);
for
(
i
=
0
;
i
<
8
;
i
++
)
for
(
i
=
0
;
i
<
8
;
i
++
)
{
{
p_guid
->
v
4
[
i
]
=
var_buffer_get8
(
p_buf
);
p_guid
->
Data
4
[
i
]
=
var_buffer_get8
(
p_buf
);
}
}
}
}
modules/demux/asf/libasf_guid.h
View file @
7c7037db
...
@@ -28,19 +28,19 @@
...
@@ -28,19 +28,19 @@
*****************************************************************************/
*****************************************************************************/
typedef
struct
guid_s
typedef
struct
guid_s
{
{
uint32_t
v
1
;
/* le */
uint32_t
Data
1
;
/* le */
uint16_t
v
2
;
/* le */
uint16_t
Data
2
;
/* le */
uint16_t
v
3
;
/* le */
uint16_t
Data
3
;
/* le */
uint8_t
v
4
[
8
];
uint8_t
Data
4
[
8
];
}
guid_t
;
}
guid_t
;
#define GUID_FMT "0x%x-0x%x-0x%x-0x%2.2x%2.2x%2.2x%2.2x%2.2x%2.2x%2.2x%2.2x"
#define GUID_FMT "0x%x-0x%x-0x%x-0x%2.2x%2.2x%2.2x%2.2x%2.2x%2.2x%2.2x%2.2x"
#define GUID_PRINT( guid ) \
#define GUID_PRINT( guid ) \
(guid).
v
1, \
(guid).
Data
1, \
(guid).
v
2, \
(guid).
Data
2, \
(guid).
v
3, \
(guid).
Data
3, \
(guid).
v4[0],(guid).v4[1],(guid).v4[2],(guid).v
4[3], \
(guid).
Data4[0],(guid).Data4[1],(guid).Data4[2],(guid).Data
4[3], \
(guid).
v4[4],(guid).v4[5],(guid).v4[6],(guid).v
4[7]
(guid).
Data4[4],(guid).Data4[5],(guid).Data4[6],(guid).Data
4[7]
enum
enum
{
{
...
@@ -226,18 +226,18 @@ static const guid_t asf_guid_audio_conceal_spread =
...
@@ -226,18 +226,18 @@ static const guid_t asf_guid_audio_conceal_spread =
****************************************************************************/
****************************************************************************/
static
inline
void
ASF_GetGUID
(
guid_t
*
p_guid
,
const
uint8_t
*
p_data
)
static
inline
void
ASF_GetGUID
(
guid_t
*
p_guid
,
const
uint8_t
*
p_data
)
{
{
p_guid
->
v
1
=
GetDWLE
(
p_data
);
p_guid
->
Data
1
=
GetDWLE
(
p_data
);
p_guid
->
v
2
=
GetWLE
(
p_data
+
4
);
p_guid
->
Data
2
=
GetWLE
(
p_data
+
4
);
p_guid
->
v
3
=
GetWLE
(
p_data
+
6
);
p_guid
->
Data
3
=
GetWLE
(
p_data
+
6
);
memcpy
(
p_guid
->
v
4
,
p_data
+
8
,
8
);
memcpy
(
p_guid
->
Data
4
,
p_data
+
8
,
8
);
}
}
static
inline
bool
CmpGUID
(
const
guid_t
*
p_guid1
,
const
guid_t
*
p_guid2
)
static
inline
bool
CmpGUID
(
const
guid_t
*
p_guid1
,
const
guid_t
*
p_guid2
)
{
{
if
(
(
p_guid1
->
v1
!=
p_guid2
->
v
1
)
||
if
(
(
p_guid1
->
Data1
!=
p_guid2
->
Data
1
)
||
(
p_guid1
->
v2
!=
p_guid2
->
v
2
)
||
(
p_guid1
->
Data2
!=
p_guid2
->
Data
2
)
||
(
p_guid1
->
v3
!=
p_guid2
->
v
3
)
||
(
p_guid1
->
Data3
!=
p_guid2
->
Data
3
)
||
(
memcmp
(
p_guid1
->
v4
,
p_guid2
->
v
4
,
8
))
)
(
memcmp
(
p_guid1
->
Data4
,
p_guid2
->
Data
4
,
8
))
)
{
{
return
false
;
return
false
;
}
}
...
...
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