1
mirror of https://github.com/mpv-player/mpv synced 2025-01-01 04:36:24 +01:00

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
This commit is contained in:
diego 2008-10-27 21:00:12 +00:00
parent 9a33429014
commit 91c3f024a9

View File

@ -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);