Skip to content

Commit

Permalink
Compilation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristianFeldmann committed Oct 14, 2024
1 parent 1ed8a43 commit 4e12df4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions YUViewLib/src/filesource/FileSourceFFmpegFile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,8 @@ ByteVector FileSourceFFmpegFile::getLhvCData()
continue;

const auto boxSize = getBoxSize(lhvcPos - 4);
if (boxSize == 0 || boxSize > std::distance(lhvcPos, rawFileData.end()))
if (boxSize == 0 ||
boxSize > static_cast<std::uint64_t>(std::distance(lhvcPos, rawFileData.end())))
continue;

// We just return the payload without the box size or the "lhvC" tag
Expand Down Expand Up @@ -399,8 +400,8 @@ FileSourceFFmpegFile::~FileSourceFFmpegFile()
this->ff.freePacket(this->currentPacket);
}

bool FileSourceFFmpegFile::openFile(const QString & filePath,
QWidget * mainWindow,
bool FileSourceFFmpegFile::openFile(const QString &filePath,
QWidget *mainWindow,
FileSourceFFmpegFile *other,
bool parseFile)
{
Expand Down

0 comments on commit 4e12df4

Please sign in to comment.