mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/telegramdesktop/tdesktop
synced 2026-09-20 08:03:45 +08:00
Fix build on x64 with Qt 5.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user