Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
58f420fd
Commit
58f420fd
authored
Feb 16, 2021
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tag/RiffFormat: use CamelCase
parent
ded2b31f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
RiffFormat.hxx
src/tag/RiffFormat.hxx
+2
-2
RiffId3.cxx
src/tag/RiffId3.cxx
+2
-2
No files found.
src/tag/RiffFormat.hxx
View file @
58f420fd
...
@@ -22,13 +22,13 @@
...
@@ -22,13 +22,13 @@
#include <cstdint>
#include <cstdint>
struct
riff_h
eader
{
struct
RiffFileH
eader
{
char
id
[
4
];
char
id
[
4
];
uint32_t
size
;
uint32_t
size
;
char
format
[
4
];
char
format
[
4
];
};
};
struct
riff_chunk_h
eader
{
struct
RiffChunkH
eader
{
char
id
[
4
];
char
id
[
4
];
uint32_t
size
;
uint32_t
size
;
};
};
...
...
src/tag/RiffId3.cxx
View file @
58f420fd
...
@@ -34,7 +34,7 @@ riff_seek_id3(InputStream &is, std::unique_lock<Mutex> &lock)
...
@@ -34,7 +34,7 @@ riff_seek_id3(InputStream &is, std::unique_lock<Mutex> &lock)
is
.
Rewind
(
lock
);
is
.
Rewind
(
lock
);
riff_h
eader
header
;
RiffFileH
eader
header
;
is
.
ReadFull
(
lock
,
&
header
,
sizeof
(
header
));
is
.
ReadFull
(
lock
,
&
header
,
sizeof
(
header
));
if
(
memcmp
(
header
.
id
,
"RIFF"
,
4
)
!=
0
||
if
(
memcmp
(
header
.
id
,
"RIFF"
,
4
)
!=
0
||
(
is
.
KnownSize
()
&&
FromLE32
(
header
.
size
)
>
is
.
GetSize
()))
(
is
.
KnownSize
()
&&
FromLE32
(
header
.
size
)
>
is
.
GetSize
()))
...
@@ -43,7 +43,7 @@ riff_seek_id3(InputStream &is, std::unique_lock<Mutex> &lock)
...
@@ -43,7 +43,7 @@ riff_seek_id3(InputStream &is, std::unique_lock<Mutex> &lock)
while
(
true
)
{
while
(
true
)
{
/* read the chunk header */
/* read the chunk header */
riff_chunk_h
eader
chunk
;
RiffChunkH
eader
chunk
;
is
.
ReadFull
(
lock
,
&
chunk
,
sizeof
(
chunk
));
is
.
ReadFull
(
lock
,
&
chunk
,
sizeof
(
chunk
));
size_t
size
=
FromLE32
(
chunk
.
size
);
size_t
size
=
FromLE32
(
chunk
.
size
);
...
...
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