diff options
author | Kacper Michajłow <kasper93@gmail.com> | 2023-12-13 18:43:30 +0100 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2024-01-31 15:38:21 +0000 |
commit | a59b8edb96cbadbf61f30ec563bddee7701d984a (patch) | |
tree | 8e68a7c82fcf879449a85d220a57e9f00cb9456e /stream/stream.h | |
parent | d90a5ff17a88cbda2ac64cccf1cd98456f2d0ab2 (diff) | |
download | mpv-a59b8edb96cbadbf61f30ec563bddee7701d984a.tar.bz2 mpv-a59b8edb96cbadbf61f30ec563bddee7701d984a.tar.xz |
stream: increase max_size to INT_MAX minus padding
No need to magic number limit, we can support up to INT_MAX with current
code. Which should be more than enough.
Diffstat (limited to 'stream/stream.h')
-rw-r--r-- | stream/stream.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/stream/stream.h b/stream/stream.h index 423ba12d91..58b55e1a43 100644 --- a/stream/stream.h +++ b/stream/stream.h @@ -32,6 +32,9 @@ // it's guaranteed that you can seek back by <= of this size again. #define STREAM_BUFFER_SIZE 2048 +// Maximum size of a complete read. +#define STREAM_MAX_READ_SIZE (INT_MAX - 1) + // flags for stream_open_ext (this includes STREAM_READ and STREAM_WRITE) // stream->mode |