Revision 63b16303 libavutil/eval.c

View differences:

libavutil/eval.c
404 404
    if ((ret = parse_subexpr(&e0, p)) < 0)
405 405
        return ret;
406 406
    while (*p->s == ';') {
407
        p->s++;
407 408
        e1 = e0;
408 409
        if ((ret = parse_subexpr(&e2, p)) < 0) {
409 410
            av_free_expr(e1);
410 411
            return ret;
411 412
        }
412
        p->s++;
413 413
        e0 = new_eval_expr(e_last, 1, e1, e2);
414 414
        if (!e0) {
415 415
            av_free_expr(e1);
......
534 534
    double d;
535 535
    const char **expr, *exprs[] = {
536 536
        "",
537
        "1;2",
537 538
        "1+(5-2)^(3-1)+1/2+sin(PI)-max(-2.2,-3.1)",
538 539
        "80G/80Gi"
539 540
        "1k",

Also available in: Unified diff