# HG changeset patch # User diego # Date 1303198356 0 # Node ID d676ffcbc45f8f15e4d8dafb772f530bb1426dff # Parent 92f963c8c61046dbeee10a62f70b1eae7af75829 vf_geq: Fix FFmpeg API usage; eliminates some deprecation warnings. libmpcodecs/vf_geq.c:118: warning: 'av_eval_expr' is deprecated (declared at ffmpeg/libavutil/eval.h:118) libmpcodecs/vf_geq.c:178: warning: 'av_parse_expr' is deprecated (declared at ffmpeg/libavutil/eval.h:109) patch by Alexis Ballier, alexis.ballier gmail com diff -r 92f963c8c610 -r d676ffcbc45f libmpcodecs/vf_geq.c --- a/libmpcodecs/vf_geq.c Sat Apr 16 03:35:56 2011 +0000 +++ b/libmpcodecs/vf_geq.c Tue Apr 19 07:32:36 2011 +0000 @@ -115,7 +115,7 @@ const_values[3]=y; for(x=0; xpriv->e[plane], + dst[x + y * dst_stride] = av_expr_eval(vf->priv->e[plane], const_values, vf); } } @@ -175,7 +175,7 @@ plane==0 ? lum : (plane==1 ? cb : cr), NULL }; - res = av_parse_expr(&vf->priv->e[plane], eq[plane], const_names, NULL, NULL, func2_names, func2, 0, NULL); + res = av_expr_parse(&vf->priv->e[plane], eq[plane], const_names, NULL, NULL, func2_names, func2, 0, NULL); if (res < 0) { mp_msg(MSGT_VFILTER, MSGL_ERR, "geq: error loading equation `%s'\n", eq[plane]);