[FFmpeg-devel] Make libavfilter/vf_drawtext.c build under uclibc environments

René Rhéaume rene.rheaume at gmail.com
Sat Aug 22 15:15:43 CEST 2015

In function func_eval_expr_int_format inside
libavfilter/vf_drawtext.c, the functions feclearexcept and
fetestexcept are used. They are missing on uclibc. On that platform,
instead of checking if the FPU raised an exception after trying to
convert a floating-point number to an integer, do the check beforehand
using isfinite and comparisons against the maximum and minimum value
of an int32_t.

Signed-off-by: René Rhéaume <rene.rheaume at gmail.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ffmpeg-2.6.3-uclibc.patch
Type: text/x-patch
Size: 923 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150822/97e06c0f/attachment.bin>

More information about the ffmpeg-devel mailing list