| 549 | } |
| 550 | |
| 551 | static 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 | |
| 567 | static int parse_pow(AVExpr **e, Parser *p, int *sign) |
| 568 | { |
no test coverage detected