Change 0xffffffff with UINT_MAX

This commit is contained in:
jcdr428
2023-08-16 14:43:34 +01:00
parent 4bc5cef9f6
commit 2ef27c20b0
5 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -214,8 +214,8 @@ int64_t File::seek(const int64_t offset, const SeekMethod whence) const
bool File::truncate(const uint64_t newFileSize) const
{
const LONG distanceToMoveLow = static_cast<LONG>(newFileSize & 0xffffffff);
LONG distanceToMoveHigh = static_cast<LONG>((newFileSize & 0xffffffff00000000ull) >> 32);
const LONG distanceToMoveLow = static_cast<LONG>(newFileSize);
LONG distanceToMoveHigh = static_cast<LONG>(newFileSize >> 32);
const DWORD newPointerLow = SetFilePointer(m_impl, distanceToMoveLow, &distanceToMoveHigh, FILE_BEGIN);
const DWORD errCode = GetLastError();
if (newPointerLow == INVALID_SET_FILE_POINTER && errCode != NO_ERROR)
+1 -1
View File
@@ -199,7 +199,7 @@ int HevcVpsUnit::deserialize()
const unsigned vps_max_dec_pic_buffering_minus1 = extractUEGolombCode();
if (extractUEGolombCode() > vps_max_dec_pic_buffering_minus1) // vps_max_num_reorder_pics
return 1;
if (extractUEGolombCode() == 0xffffffff) // vps_max_latency_increase_plus1
if (extractUEGolombCode() == UINT_MAX) // vps_max_latency_increase_plus1
return 1;
}
const auto vps_max_layer_id = m_reader.getBits<uint8_t>(6);
+2 -2
View File
@@ -1006,8 +1006,8 @@ int IsoWriter::writeExtendedFileEntryDescriptor(const bool namedStream, const ui
writeIcbTag(namedStream, m_buffer + 16, fileType);
buff32[36 / 4] = 0xffffffff; // uid
buff32[40 / 4] = 0xffffffff; // guid
buff32[36 / 4] = UINT_MAX; // uid
buff32[40 / 4] = UINT_MAX; // guid
// zero Permissions, File Link Count, Record Format, Record Display Attributes
if (fileType >= FileTypes::Metadata)
{
+1 -1
View File
@@ -27,7 +27,7 @@ bool isFillerNullPacket(uint8_t* curBuf)
{
const auto endPos = reinterpret_cast<uint32_t*>(curBuf + TS_FRAME_SIZE);
for (auto curBuf32 = reinterpret_cast<uint32_t*>(curBuf + 4); curBuf32 < endPos; curBuf32++)
if (*curBuf32 != 0xffffffff && *curBuf32 != 0)
if (*curBuf32 != UINT_MAX && *curBuf32 != 0)
return false;
return true;
}
+1 -1
View File
@@ -103,7 +103,7 @@ bool VvcUnit::dpb_parameters(const int MaxSubLayersMinus1, const bool subLayerIn
if (dpb_max_num_reorder_pics > dpb_max_dec_pic_buffering_minus1)
return true;
const unsigned dpb_max_latency_increase_plus1 = extractUEGolombCode();
if (dpb_max_latency_increase_plus1 == 0xffffffff)
if (dpb_max_latency_increase_plus1 == UINT_MAX)
return true;
}
return false;