diff options
author | 2010-06-01 10:28:45 +0000 | |
---|---|---|
committer | 2010-06-01 10:28:45 +0000 | |
commit | d9396facdc7edc90164bfaad2361d08a9d57919f (patch) | |
tree | bc5afc6111ce187f7ab298292f3ffbf65ff668bb /libmpcodecs/vf_geq.c | |
parent | 88c4cbb3f9e741fe44ea825b6966d63c6effa5f3 (diff) |
Fix compilation after FFmpeg r23402.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31299 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs/vf_geq.c')
-rw-r--r-- | libmpcodecs/vf_geq.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libmpcodecs/vf_geq.c b/libmpcodecs/vf_geq.c index 61e6d5cdf7..10e9e833b7 100644 --- a/libmpcodecs/vf_geq.c +++ b/libmpcodecs/vf_geq.c @@ -137,7 +137,7 @@ static void uninit(struct vf_instance *vf){ //===========================================================================// static int vf_open(vf_instance_t *vf, char *args){ char eq[3][2000] = { { 0 }, { 0 }, { 0 } }; - int plane; + int plane, res; vf->config=config; vf->put_image=put_image; @@ -178,9 +178,9 @@ static int vf_open(vf_instance_t *vf, char *args){ plane==0 ? lum : (plane==1 ? cb : cr), NULL }; - vf->priv->e[plane] = ff_parse_expr(eq[plane], const_names, NULL, NULL, func2_names, func2, 0, NULL); + res = ff_parse_expr(&vf->priv->e[plane], eq[plane], const_names, NULL, NULL, func2_names, func2, 0, NULL); - if (!vf->priv->e[plane]) { + if (res < 0) { mp_msg(MSGT_VFILTER, MSGL_ERR, "geq: error loading equation `%s'\n", eq[plane]); return 0; } |