[Ffmpeg-devel] gcc4 support & MMX fixups (from Debian)

Michael Niedermayer michaelni
Thu Feb 2 10:24:10 CET 2006


Hi

On Thu, Feb 02, 2006 at 09:41:37AM +0100, Pawe? Sikora wrote:
> > > I suggest we should use a size_t type for params like *_stride
> > > to avoid (on x86-64) unneeded 32<->64 conversions.
> >
> > no, size_t is unsigned, stride must be signed!
> 
> Right, I think off_t from sys/types.h is a good candidate.
> It's signed, on x86-32 has 32 bits, on x86-64 has 64 bits.

NO!

-- Data Type: off_t
     This is an arithmetic data type used to represent file sizes.  In
     the GNU system, this is equivalent to `fpos_t' or `long int'.

     If the source is compiled with `_FILE_OFFSET_BITS == 64' this type
     is transparently replaced by `off64_t'.

[...]

-- 
Michael





More information about the ffmpeg-devel mailing list