summaryrefslogtreecommitdiffstats
path: root/libmpcodecs
diff options
context:
space:
mode:
authorben <ben@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-08-06 20:04:19 +0000
committerben <ben@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-08-06 20:04:19 +0000
commitd4419a78698d1c1c5f602f950699fa71cdbfdac9 (patch)
tree18f75a95efdd8039a015681bd87871d8c8f8604e /libmpcodecs
parent806d0c21c21b407c7f505111ef32cea7361a58b9 (diff)
downloadmpv-d4419a78698d1c1c5f602f950699fa71cdbfdac9.tar.bz2
mpv-d4419a78698d1c1c5f602f950699fa71cdbfdac9.tar.xz
Replace macro: MAX -> FFMAX
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29479 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs')
-rw-r--r--libmpcodecs/vf_expand.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/libmpcodecs/vf_expand.c b/libmpcodecs/vf_expand.c
index 5804ce41c1..f545990e9a 100644
--- a/libmpcodecs/vf_expand.c
+++ b/libmpcodecs/vf_expand.c
@@ -13,6 +13,7 @@
#include "vf.h"
#include "libvo/fastmemcpy.h"
+#include "libavutil/avutil.h"
#ifdef OSD_SUPPORT
#include "libvo/sub.h"
@@ -22,8 +23,6 @@
#include "m_option.h"
#include "m_struct.h"
-#define MAX(a,b) ((a) > (b) ? (a) : (b))
-
static struct vf_priv_s {
int exp_w,exp_h;
int exp_x,exp_y;
@@ -253,8 +252,8 @@ static void get_image(struct vf_instance_s* vf, mp_image_t *mpi){
// try full DR !
mpi->priv=vf->dmpi=vf_get_image(vf->next,mpi->imgfmt,
mpi->type, mpi->flags,
- MAX(vf->priv->exp_w, mpi->width +vf->priv->exp_x),
- MAX(vf->priv->exp_h, mpi->height+vf->priv->exp_y));
+ FFMAX(vf->priv->exp_w, mpi->width +vf->priv->exp_x),
+ FFMAX(vf->priv->exp_h, mpi->height+vf->priv->exp_y));
#if 1
if((vf->dmpi->flags & MP_IMGFLAG_DRAW_CALLBACK) &&
!(vf->dmpi->flags & MP_IMGFLAG_DIRECT)){
@@ -296,8 +295,8 @@ static void start_slice(struct vf_instance_s* vf, mp_image_t *mpi){
mpi->priv=vf->dmpi=vf_get_image(vf->next,mpi->imgfmt,
// MP_IMGTYPE_TEMP, MP_IMGFLAG_ACCEPT_STRIDE | MP_IMGFLAG_PREFER_ALIGNED_STRIDE,
MP_IMGTYPE_TEMP, mpi->flags,
- MAX(vf->priv->exp_w, mpi->width +vf->priv->exp_x),
- MAX(vf->priv->exp_h, mpi->height+vf->priv->exp_y));
+ FFMAX(vf->priv->exp_w, mpi->width +vf->priv->exp_x),
+ FFMAX(vf->priv->exp_h, mpi->height+vf->priv->exp_y));
if(!(vf->dmpi->flags&MP_IMGFLAG_DRAW_CALLBACK))
mp_msg(MSGT_VFILTER, MSGL_WARN, MSGTR_MPCODECS_WarnNextFilterDoesntSupportSlices); // shouldn't happen.
vf->priv->first_slice = 1;