summaryrefslogtreecommitdiffstats
path: root/libmpcodecs/vf_smartblur.c
diff options
context:
space:
mode:
authorlucabe <lucabe@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-09-17 15:02:13 +0000
committerlucabe <lucabe@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-09-17 15:02:13 +0000
commit1f8851863813c6a94cd1d6e2ca5fb108cd6ed61f (patch)
tree1ab193d679454ecfc9f0898c44239f1aa6dd07cf /libmpcodecs/vf_smartblur.c
parenta9aca9d6443b30d53843e13a978964ba34d4801a (diff)
downloadmpv-1f8851863813c6a94cd1d6e2ca5fb108cd6ed61f.tar.bz2
mpv-1f8851863813c6a94cd1d6e2ca5fb108cd6ed61f.tar.xz
Use PIX_FMT_* instead of IMGFMT_* when calling sws_getContext()
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19876 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs/vf_smartblur.c')
-rw-r--r--libmpcodecs/vf_smartblur.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libmpcodecs/vf_smartblur.c b/libmpcodecs/vf_smartblur.c
index 5de9040367..ba9b5a19bb 100644
--- a/libmpcodecs/vf_smartblur.c
+++ b/libmpcodecs/vf_smartblur.c
@@ -29,6 +29,7 @@
#include <malloc.h>
#endif
+#include "avutil.h"
#include "img_format.h"
#include "mp_image.h"
#include "vf.h"
@@ -91,7 +92,7 @@ static int allocStuff(FilterParam *f, int width, int height){
swsF.lumH= swsF.lumV= vec;
swsF.chrH= swsF.chrV= NULL;
f->filterContext= sws_getContext(
- width, height, IMGFMT_Y8, width, height, IMGFMT_Y8, get_sws_cpuflags(), &swsF, NULL, NULL);
+ width, height, PIX_FMT_GRAY8, width, height, PIX_FMT_GRAY8, get_sws_cpuflags(), &swsF, NULL, NULL);
sws_freeVec(vec);