[FFmpeg-devel] [PATCH 1/2] Fix clashes with 'I' and 'complex' defined in complex.h

Matt Oliver protogonoi at gmail.com
Wed May 7 15:42:23 CEST 2014


complex.h creates defines for 'I' and 'complex' which clash with several
identically named variables used within FFmpeg. This is only an issue when
including complex.h which previously has never been done (hence no problem
previously). However complex.h is included automatically by icl's math.h
header which breaks compilation with icl (and math.h is included almost
everywhere).

This patch simply renames the offending variables. i.e. 'I' -> 'i' etc.
Only difference is in vp8/vp9 where 'I' was used for "Internal Difference"
to keep all things consistent with the capitalisation of the other
variables this was changed to 'D' (for Difference). The exact renaming is
not important but the chosen values seemed the most suitable.

Matt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-clashes-with-I-and-complex-defined-in-complex.h.patch
Type: application/octet-stream
Size: 26054 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20140507/cdb5a8fa/attachment.obj>


More information about the ffmpeg-devel mailing list