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

Timothy Gu timothygu99 at gmail.com
Sat Aug 22 22:41:57 CEST 2015


On Sat, Aug 22, 2015 at 1:18 PM Paul B Mahol <onemda at gmail.com> wrote:

> On 8/22/15, Rene Rheaume <rene.rheaume at gmail.com> wrote:
> > 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: Rene Rheaume <rene.rheaume at gmail.com>
> >
>
> This is ugly solution to problem.
>

What would you suggest?

Timothy


More information about the ffmpeg-devel mailing list