I found some toruble with opening large (~3GB) AVI file at RedHat 7.2 
Linux. This problem was solved by a small patch (included in attachement).

Best regards,
Oleg Sadov
--- avifile-0.6/lib/aviread/Cache.cpp   Wed Sep 19 23:10:37 2001
+++ avifile-0.6/lib/aviread/Cache.cpp.new       Fri Dec 14 22:43:47 2001
@@ -20,6 +20,10 @@
 // limit the maximum size of each prefetched stream in bytes
 #define STREAM_SIZE_LIMIT 200000
 
+#ifndef O_LARGEFILE
+#define O_LARGEFILE 0
+#endif
+
 #define __MODULE__ "Cache AVI"
 
 #define Debug if(0)
@@ -523,7 +527,7 @@
 InputStream::InputStream(const char *pszFile) throw(FatalError)
     :cache(new Cache(BUFFERING_SIZE))
 {
-    m_iFd = open(pszFile, O_RDONLY);
+    m_iFd = open(pszFile, O_RDONLY|O_LARGEFILE);
     if (m_iFd < 0)
        throw FATAL("Could not open file");
     off_t spos = lseek64(m_iFd, 0, SEEK_CUR);

Reply via email to