2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Patch the remaining uses or FFmpeg APIs

This commit is contained in:
Alexander Kernozhitsky
2022-09-02 01:27:25 +03:00
committed by John Preston
parent 21b0454461
commit c6c2a44e9d
5 changed files with 23 additions and 18 deletions

View File

@@ -181,7 +181,7 @@ struct Instance::Inner::Private {
int32 nbytes = qMin(l->data.size() - l->dataPos, int32(buf_size));
if (nbytes <= 0) {
return 0;
return AVERROR_EOF;
}
memcpy(buf, l->data.constData() + l->dataPos, nbytes);