MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / make_eval_expr

Function make_eval_expr

libavutil/eval.c:551–565  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

549}
550
551static AVExpr *make_eval_expr(int type, int value, AVExpr *p0, AVExpr *p1)
552{
553 int depth = FFMAX(p0->depth, p1->depth) + 1;
554 if (depth > MAX_DEPTH)
555 return NULL;
556 AVExpr *e = av_mallocz(sizeof(AVExpr));
557 if (!e)
558 return NULL;
559 e->type =type ;
560 e->value =value ;
561 e->param[0] =p0 ;
562 e->param[1] =p1 ;
563 e->depth = depth;
564 return e;
565}
566
567static int parse_pow(AVExpr **e, Parser *p, int *sign)
568{

Callers 4

parse_factorFunction · 0.85
parse_termFunction · 0.85
parse_subexprFunction · 0.85
parse_exprFunction · 0.85

Calls 1

av_malloczFunction · 0.70

Tested by

no test coverage detected