File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -44,15 +44,10 @@ bool AsfVideo::GUIDTag::operator==(const AsfVideo::GUIDTag& other) const {
4444}
4545
4646AsfVideo::GUIDTag::GUIDTag (const uint8_t * bytes) {
47- std::memcpy (&data1_, bytes, DWORD );
48- std::memcpy (&data2_, bytes + DWORD, WORD );
49- std::memcpy (&data3_, bytes + DWORD + WORD, WORD );
47+ data1_ = Exiv2::getULong ( bytes, ByteOrder::littleEndian );
48+ data2_ = Exiv2::getUShort ( bytes + DWORD, ByteOrder::littleEndian );
49+ data3_ = Exiv2::getUShort ( bytes + DWORD + WORD, ByteOrder::littleEndian );
5050 std::copy (bytes + QWORD, bytes + (2 * QWORD), data4_.begin ());
51- if (isBigEndianPlatform ()) {
52- data1_ = byteSwap (data1_, true );
53- data2_ = byteSwap (data2_, true );
54- data3_ = byteSwap (data3_, true );
55- }
5651}
5752
5853std::string AsfVideo::GUIDTag::to_string () const {
You can’t perform that action at this time.
0 commit comments