[FFmpeg-devel] Eliminating long

Compn tempn
Mon Mar 31 03:00:40 CEST 2008


On Sun, 30 Mar 2008 23:09:27 +0100, Jay L. T. Cornwall wrote:

>Hi,
>
>Most structures can be marshalled from C# to C and back again with
>ease. However C# fixes sizeof(long) to be 8 bytes on all platforms. In
>C it varies with platform and compiler:
>There is no reliable way to marshall this type into a managed
>structure on all platforms. Could I request that the type be made
>explicit in ByteIOContext, as 'unsigned int' or 'uint32_t'.


maybe i misunderstand this, but
could you just have ffmpeg print out what long it was compiled to use
and then have your wrapper work around whichever long it was ?



-compn




More information about the ffmpeg-devel mailing list