tag/RiffFormat: use CamelCase

This commit is contained in:
Max Kellermann 2021-02-16 19:23:20 +01:00
parent ded2b31fbc
commit 58f420fdca
2 changed files with 4 additions and 4 deletions

View File

@ -22,13 +22,13 @@
#include <cstdint>
struct riff_header {
struct RiffFileHeader {
char id[4];
uint32_t size;
char format[4];
};
struct riff_chunk_header {
struct RiffChunkHeader {
char id[4];
uint32_t size;
};

View File

@ -34,7 +34,7 @@ riff_seek_id3(InputStream &is, std::unique_lock<Mutex> &lock)
is.Rewind(lock);
riff_header header;
RiffFileHeader header;
is.ReadFull(lock, &header, sizeof(header));
if (memcmp(header.id, "RIFF", 4) != 0 ||
(is.KnownSize() && FromLE32(header.size) > is.GetSize()))
@ -43,7 +43,7 @@ riff_seek_id3(InputStream &is, std::unique_lock<Mutex> &lock)
while (true) {
/* read the chunk header */
riff_chunk_header chunk;
RiffChunkHeader chunk;
is.ReadFull(lock, &chunk, sizeof(chunk));
size_t size = FromLE32(chunk.size);