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 aa77af74)
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) ...@@ -316,6 +316,10 @@ static int Seek(access_t *access, uint64_t position)
access_sys_t *sys = access->p_sys; access_sys_t *sys = access->p_sys;
int ret; int ret;
#ifndef EOVERFLOW
# define EOVERFLOW EFBIG
#endif
if (position > INT64_MAX) if (position > INT64_MAX)
ret = AVERROR(EOVERFLOW); ret = AVERROR(EOVERFLOW);
else 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