Commit 09409bfd authored by Rafaël Carré's avatar Rafaël Carré

avio: EOVERFLOW is not defined on windows

Define it to EFBIG (file too big), it's close enough in this specific use
(cherry picked from commit aa77af7405751bec3f8adfd1c671133261dc9c8d)
Signed-off-by: default avatarRafaël Carré <funman@videolan.org>
parent 5a53397f
......@@ -316,6 +316,10 @@ static int Seek(access_t *access, uint64_t position)
access_sys_t *sys = access->p_sys;
int ret;
#ifndef EOVERFLOW
# define EOVERFLOW EFBIG
#endif
if (position > INT64_MAX)
ret = AVERROR(EOVERFLOW);
else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment