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

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
1085 1085
1086 feclearexcept(FE_ALL_EXCEPT);1086 feclearexcept(FE_ALL_EXCEPT);
1087 intval = res;1087 intval = res;
1088#if defined(FE_INVALID) && defined(FE_OVERFLOW) && defined(FE_UNDERFLOW)
1088 if ((ret = fetestexcept(FE_INVALID|FE_OVERFLOW|FE_UNDERFLOW))) {1089 if ((ret = fetestexcept(FE_INVALID|FE_OVERFLOW|FE_UNDERFLOW))) {
1089 av_log(ctx, AV_LOG_ERROR, "Conversion of floating-point result to int failed. Control register: 0x%08x. Conversion result: %d\n", ret, intval);1090 av_log(ctx, AV_LOG_ERROR, "Conversion of floating-point result to int failed. Control register: 0x%08x. Conversion result: %d\n", ret, intval);
1090 return AVERROR(EINVAL);1091 return AVERROR(EINVAL);
1091 }1092 }
1093#endif
1092 1094
1093 if (argc == 3)1095 if (argc == 3)
1094 av_strlcatf(fmt_str, sizeof(fmt_str), "0%u", positions);1096 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