[FFmpeg-devel] [PATCH] avfilter/vf_tonemap: don't use NAN constant as an initializer

Nicolas George george at nsup.org
Fri Sep 8 11:25:37 EEST 2017


Le primidi 21 fructidor, an CCXXV, James Almer a écrit :
> What can we do, then? NAN and nan("") are sometimes compile-time
> constants and sometimes not, apparently depending on build type and
> target system.
> 
> CCing Vittorio as he's the author of the filter.

"The macro NAN is defined if and only if the implementation supports
quiet NaNs for the float type. It expands to a constant expression of
type float representing a quiet NaN."

-> If the macro is defined, it must be a compile-time constant.
Therefore, DJGPP is wrong.

I say let the people who care about DJGPP fix it, and in the meantime
use "--disable-filter=tonemap".

Regards,

-- 
  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20170908/5928fff9/attachment.sig>


More information about the ffmpeg-devel mailing list