From 9587f3b7088354fc049c998fc172aebfccc29935 Mon Sep 17 00:00:00 2001 From: Thulinma Date: Tue, 17 Feb 2015 21:13:28 +0100 Subject: [PATCH] Undo accidental change of bpos size in DTSC headers from 5 to 8 bytes. --- lib/dtscmeta.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/dtscmeta.cpp b/lib/dtscmeta.cpp index d47ad1ef..80899d42 100644 --- a/lib/dtscmeta.cpp +++ b/lib/dtscmeta.cpp @@ -878,11 +878,15 @@ namespace DTSC { ///\brief Returns the byteposition of a keyframe unsigned long long Key::getBpos() { - return btohll(data); + return (((unsigned long long)data[0] << 32) | (data[1] << 24) | (data[2] << 16) | (data[3] << 8) | data[4]); } void Key::setBpos(unsigned long long newBpos) { - htobll(data, newBpos); + data[4] = newBpos & 0xFF; + data[3] = (newBpos >> 8) & 0xFF; + data[2] = (newBpos >> 16) & 0xFF; + data[1] = (newBpos >> 24) & 0xFF; + data[0] = (newBpos >> 32) & 0xFF; } unsigned long Key::getLength() {