History

avfilter/vf_drawtext: only test available exceptions

soft float systems do not define these macros under musl. Fixes: Ticket7102

Rosen Penev committed 6 years ago

Commit 8beb9e51 parent df4e0081 file · +2 −0Browse files

Showing the changes to libavfilter (1 of 1 file). Show all

Unified · Split

libavfilter/vf_drawtext.c+2−0
@@ -1085,10 +1085,12 @@ static int func_eval_expr_int_format(AVFilterContext *ctx, AVBPrint *bp, · 1084 unmodified lines
10851085
10861086 feclearexcept(FE_ALL_EXCEPT);
10871087 intval = res;
1088+#if defined(FE_INVALID) && defined(FE_OVERFLOW) && defined(FE_UNDERFLOW)
10881089 if ((ret = fetestexcept(FE_INVALID|FE_OVERFLOW|FE_UNDERFLOW))) {
10891090 av_log(ctx, AV_LOG_ERROR, "Conversion of floating-point result to int failed. Control register: 0x%08x. Conversion result: %d\n", ret, intval);
10901091 return AVERROR(EINVAL);
10911092 }
1093+#endif
10921094
10931095 if (argc == 3)
10941096 av_strlcatf(fmt_str, sizeof(fmt_str), "0%u", positions);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t