diff options
Diffstat (limited to 'libmpcodecs/vf_smartblur.c')
-rw-r--r-- | libmpcodecs/vf_smartblur.c | 3 |
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); |