[vlc-commits] avio: EOVERFLOW is not defined on windows

Rafaël Carré git at videolan.org
Mon Jan 30 04:07:37 CET 2012


vlc | branch: master | Rafaël Carré <funman at videolan.org> | Sun Jan 29 22:06:54 2012 -0500| [aa77af7405751bec3f8adfd1c671133261dc9c8d] | committer: 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

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=aa77af7405751bec3f8adfd1c671133261dc9c8d
---

 modules/access/avio.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/modules/access/avio.c b/modules/access/avio.c
index 0850791..e85400d 100644
--- a/modules/access/avio.c
+++ b/modules/access/avio.c
@@ -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



More information about the vlc-commits mailing list