From 91c3f024a9172ef6f517fe3cc8f89b77bb98bfac Mon Sep 17 00:00:00 2001 From: diego Date: Mon, 27 Oct 2008 21:00:12 +0000 Subject: [PATCH] Fix smartblur filter crash due to missing default scaler choice; set bicubic as the default scaler. patch by Kurt Garloff, kurt garloff de git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27838 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpcodecs/vf_smartblur.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libmpcodecs/vf_smartblur.c b/libmpcodecs/vf_smartblur.c index 31059740e0..1ca1cbac26 100644 --- a/libmpcodecs/vf_smartblur.c +++ b/libmpcodecs/vf_smartblur.c @@ -93,7 +93,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, PIX_FMT_GRAY8, width, height, PIX_FMT_GRAY8, get_sws_cpuflags(), &swsF, NULL, NULL); + width, height, PIX_FMT_GRAY8, width, height, PIX_FMT_GRAY8, SWS_BICUBIC | get_sws_cpuflags(), &swsF, NULL, NULL); sws_freeVec(vec);