[MPlayer-dev-eng] large file size bug

Charles Henrich henrich at sigbus.com
Mon Mar 4 00:08:31 CET 2002


> what is ftello ? i can't find such thing in linux...  under linux with 2.2+
> glibc you can use ftell and lseek on 64bit data, by defining some tricky
> defines: -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE
> 
> they make off_t long long and also enables 64-bit variants of file calls.
> 
> probably it's a porting issue, rather than mplayer/mencoder bug.
> 
> anyway, avi files >2GB need so-called ODML indexes instead of old-style
> normal indexes currently generated by mencoder.

     The fseeko() function is identical to fseek(), except it takes an off_t
     argument instead of a long.  Likewise, the ftello() function is identical
     to ftell(), except it returns an off_t.

STANDARDS
     The fgetpos(), fsetpos(), fseek(), ftell(), and rewind() functions con-
     form to ISO/IEC 9899:1990 (``ISO C89'').

     The fseeko() and ftello() functions conform to Version 2 of the Single
     UNIX Specification (``SUSv2'').

Any chance of getting aviwrite to generate ODML indexes then?

-Crh

       Charles Henrich                                   henrich at msu.edu

                       http://www.sigbus.com:81/~henrich



More information about the MPlayer-dev-eng mailing list