decoder/dsdiff: fix byte order bug

This commit is contained in:
Jurgen Kramer
2013-11-09 17:02:49 +01:00
committed by Max Kellermann
parent 573ff3a24f
commit 47d3758820
3 changed files with 15 additions and 2 deletions

View File

@@ -47,6 +47,17 @@ public:
}
};
class DffDsdUint64 {
uint32_t hi;
uint32_t lo;
public:
constexpr uint64_t Read() const {
return (uint64_t(FromBE32(hi)) << 32) |
uint64_t(FromBE32(lo));
}
};
bool
dsdlib_read(Decoder *decoder, InputStream &is,
void *data, size_t length);