[Ffmpeg-devel] [PATCH] Chinese AVS video decoder

Måns Rullgård mru
Sat Jul 1 13:42:03 CEST 2006

"Stefan Gehrer" <stefan.gehrer at gmx.de> writes:

> Points which are still open:
> - AMD64 bug reported by Benjamin. All my 64bit knowledge comes
>   from Wikipedia :)
>   Is it correct to assume that I have to deal with LP64 data model?
>   So I only need to check for wrong assumptions about pointer size?
>   (I have not used any 'long')

You don't have to "deal with" anything.  You only need to follow a
couple of simple rules:

 - Never assume any type has a particular size; use sizeof.  The only
   exception is that sizeof(char) == 1 by definition.
 - Never cast between pointer and integer types, ever.  In the extremely
   unlikely event that you really, really have to, use intptr_t.

M?ns Rullg?rd
mru at inprovide.com

More information about the ffmpeg-devel mailing list