Commit 58f420fd authored by Max Kellermann's avatar Max Kellermann

tag/RiffFormat: use CamelCase

parent ded2b31f
...@@ -22,13 +22,13 @@ ...@@ -22,13 +22,13 @@
#include <cstdint> #include <cstdint>
struct riff_header { struct RiffFileHeader {
char id[4]; char id[4];
uint32_t size; uint32_t size;
char format[4]; char format[4];
}; };
struct riff_chunk_header { struct RiffChunkHeader {
char id[4]; char id[4];
uint32_t size; uint32_t size;
}; };
......
...@@ -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_header header; RiffFileHeader 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_header chunk; RiffChunkHeader 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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment