Fix build on x64 with Qt 5.

This commit is contained in:
John Preston
2026-09-17 11:30:15 +04:00
parent 73f055c44e
commit b0e8237606
2 changed files with 4 additions and 4 deletions

View File

@@ -245,8 +245,8 @@ struct Instance::Inner::Private {
auto l = reinterpret_cast<Private*>(opaque);
int32 nbytes = std::min(
l->data.size() - l->dataPos,
qsizetype(buf_size));
static_cast<int32>(l->data.size()) - l->dataPos,
buf_size);
if (nbytes <= 0) {
return AVERROR_EOF;
}

View File

@@ -98,8 +98,8 @@ int AbstractFFMpegLoader::ReadData(void *opaque, uint8_t *buf, int buf_size) {
auto l = reinterpret_cast<AbstractFFMpegLoader *>(opaque);
auto nbytes = std::min(
l->_data.size() - l->_dataPos,
qsizetype(buf_size));
static_cast<int>(l->_data.size()) - l->_dataPos,
buf_size);
if (nbytes <= 0) {
return AVERROR_EOF;
}