[SCM] mplayer packaging branch, ubuntu, updated. debian/1.0.rc4.try1-1-22-g6729499
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sat Aug 7 17:10:49 UTC 2010
The following commit has been merged in the ubuntu branch:
commit 63e37e97e8b8a8e98ee64f05567295ba2b61c57b
Author: Reinhard Tartler <siretart at tauware.de>
Date: Thu Jul 29 07:38:00 2010 -0400
unbreak compilation for eval.h move not yet in 0.6
diff --git a/debian/patches/60eval-api.patch b/debian/patches/60eval-api.patch
new file mode 100644
index 0000000..9f1ba9f
--- /dev/null
+++ b/debian/patches/60eval-api.patch
@@ -0,0 +1,80 @@
+From: Reinhard Tartler <siretart at tauware.de>
+Subject: Revert commits r31322, 31299 and 31187 by cehoyos
+
+--- a/libmpcodecs/vf_geq.c
++++ b/libmpcodecs/vf_geq.c
+@@ -34,7 +34,7 @@
+ #include "vf.h"
+
+ #include "libavcodec/avcodec.h"
+-#include "libavutil/eval.h"
++#include "libavcodec/eval.h"
+
+ struct vf_priv_s {
+ AVExpr * e[3];
+@@ -116,7 +116,7 @@ static int put_image(struct vf_instance
+ 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] = ff_eval_expr(vf->priv->e[plane],
+ const_values, vf);
+ }
+ }
+@@ -137,7 +137,7 @@ static void uninit(struct vf_instance *v
+ //===========================================================================//
+ static int vf_open(vf_instance_t *vf, char *args){
+ char eq[3][2000] = { { 0 }, { 0 }, { 0 } };
+- int plane, res;
++ int plane;
+
+ vf->config=config;
+ vf->put_image=put_image;
+@@ -178,11 +178,11 @@ static int vf_open(vf_instance_t *vf, ch
+ 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);
++ char * a;
++ vf->priv->e[plane] = ff_parse_expr(eq[plane], const_names, NULL, NULL, func2, func2_names, &a);
+
+- if (res < 0) {
+- mp_msg(MSGT_VFILTER, MSGL_ERR, "geq: error loading equation `%s'\n", eq[plane]);
+- return 0;
++ if (!vf->priv->e[plane]) {
++ mp_msg(MSGT_VFILTER, MSGL_ERR, "geq: error loading equation `%s': %s\n", eq[plane], a);
+ }
+ }
+
+--- a/libmpcodecs/vf_qp.c
++++ b/libmpcodecs/vf_qp.c
+@@ -32,7 +32,7 @@
+ #include "libvo/fastmemcpy.h"
+
+ #include "libavcodec/avcodec.h"
+-#include "libavutil/eval.h"
++#include "libavcodec/eval.h"
+
+
+ struct vf_priv_s {
+@@ -66,16 +66,11 @@ static int config(struct vf_instance *vf
+ "qp",
+ NULL
+ };
+- double temp_val;
+- int res;
+
+- res= av_parse_and_eval_expr(&temp_val, vf->priv->eq, const_names, const_values, NULL, NULL, NULL, NULL, NULL, 0, NULL);
+-
+- if (res < 0){
+- mp_msg(MSGT_VFILTER, MSGL_ERR, "qp: Error evaluating \"%s\" \n", vf->priv->eq);
+- return 0;
+- }
+- vf->priv->lut[i+129]= lrintf(temp_val);
++ const char *error = NULL;
++ vf->priv->lut[i+129]= lrintf(ff_parse_and_eval_expr(vf->priv->eq, const_values, const_names, NULL, NULL, NULL, NULL, NULL, &error));
++ if (error)
++ mp_msg(MSGT_VFILTER, MSGL_ERR, "qp: Error evaluating \"%s\": %s\n", vf->priv->eq, error);
+ }
+
+ return vf_next_config(vf,width,height,d_width,d_height,flags,outfmt);
diff --git a/debian/patches/series b/debian/patches/series
index 8e0f620..98a9bbe 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
23mplayer-debug-printf.patch
50clean-avcommon.h
+60eval-api.patch
--
mplayer packaging
More information about the pkg-multimedia-commits
mailing list