[FFmpeg-devel] [PATCH 15/15] vfwcap: Fix some warnings about incompatible pointer type

jamal jamrial at gmail.com
Sun Jul 29 20:19:17 CEST 2012


On 27/07/12 2:30 PM, Michael Niedermayer wrote:
>> They are long, but av_parse_video_size() expects them to be int.
> 
> i guess adding 2 long variables, using them and copying between them
> and the int is the most correct way to solve this.
> the cast would require sizeof(int) == sizeof(long) this may be true
> for everything supporting vfw, but then it also maybe isnt true for
> all, i dont know that ...
> 
On Windows (32 bits and 64 bits) the size of both int and long is 4 bytes, so the cast should be fine: http://software.intel.com/en-us/articles/size-of-long-integer-type-on-different-architecture-and-os/ http://msdn.microsoft.com/en-us/library/aa383751%28v=vs.85%29.aspx
This aside, in case you missed them i sent three updated patches yesterday (Not numbered this time) and one a week or so ago that fixed a problem regarding folder creation with make checkheaders.

Regards.


More information about the ffmpeg-devel mailing list