changeset 33183:d676ffcbc45f

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
author diego
date Tue, 19 Apr 2011 07:32:36 +0000
parents 92f963c8c610
children 02da483d5625
files libmpcodecs/vf_geq.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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; x<w; x++){
                 const_values[2]=x;
-                dst[x + y * dst_stride] = av_eval_expr(vf->priv->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]);