diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-11-08 17:06:49 +0300 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-11-08 17:06:49 +0300 |
commit | d2af7205a12afde34c916ef96ba8c7a26aa0813e (patch) | |
tree | f66721788b2a9ad55d83c74cc075761bf9a5eaea /libavfilter/vf_setpts.c | |
parent | 24de0edbd589b7cb0da51260073a1a28bb6a2619 (diff) |
Use hierarchic names convention (prefix them with av_expr) for the
eval API.
More grep-friendly and more consistent with the rest of the FFmpeg
API.
Originally committed as revision 25708 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavfilter/vf_setpts.c')
-rw-r--r-- | libavfilter/vf_setpts.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavfilter/vf_setpts.c b/libavfilter/vf_setpts.c index 8ce7d6af6e..0921df7c67 100644 --- a/libavfilter/vf_setpts.c +++ b/libavfilter/vf_setpts.c @@ -69,7 +69,7 @@ static av_cold int init(AVFilterContext *ctx, const char *args, void *opaque) SetPTSContext *setpts = ctx->priv; int ret; - if ((ret = av_parse_expr(&setpts->expr, args ? args : "PTS", + if ((ret = av_expr_parse(&setpts->expr, args ? args : "PTS", var_names, NULL, NULL, NULL, NULL, 0, ctx)) < 0) { av_log(ctx, AV_LOG_ERROR, "Error while parsing expression '%s'\n", args); return ret; @@ -111,7 +111,7 @@ static void start_frame(AVFilterLink *inlink, AVFilterBufferRef *inpicref) setpts->var_values[VAR_PTS ] = TS2D(inpicref->pts); setpts->var_values[VAR_POS ] = inpicref->pos == -1 ? NAN : inpicref->pos; - d = av_eval_expr(setpts->expr, setpts->var_values, NULL); + d = av_expr_eval(setpts->expr, setpts->var_values, NULL); outpicref->pts = D2TS(d); #ifdef DEBUG @@ -133,7 +133,7 @@ static void start_frame(AVFilterLink *inlink, AVFilterBufferRef *inpicref) static av_cold void uninit(AVFilterContext *ctx) { SetPTSContext *setpts = ctx->priv; - av_free_expr(setpts->expr); + av_expr_free(setpts->expr); setpts->expr = NULL; } |