[MPlayer-cvslog] r29205 - trunk/libmpcodecs/vf_sab.c

diego subversion at mplayerhq.hu
Mon Apr 20 14:07:08 CEST 2009


Author: diego
Date: Mon Apr 20 14:07:08 2009
New Revision: 29205

Log:
Add algorithm flag (SWS_POINT) to sws_getContext call to avoid a crash.
patch by Alexander Strange, astrange ithinksw com

Modified:
   trunk/libmpcodecs/vf_sab.c

Modified: trunk/libmpcodecs/vf_sab.c
==============================================================================
--- trunk/libmpcodecs/vf_sab.c	Mon Apr 20 05:39:44 2009	(r29204)
+++ trunk/libmpcodecs/vf_sab.c	Mon Apr 20 14:07:08 2009	(r29205)
@@ -102,7 +102,7 @@ static int allocStuff(FilterParam *f, in
 	swsF.lumH= swsF.lumV= vec;
 	swsF.chrH= swsF.chrV= NULL;
 	f->preFilterContext= 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, get_sws_cpuflags()|SWS_POINT, &swsF, NULL, NULL);
 	
 	sws_freeVec(vec);
 	vec = sws_getGaussianVec(f->strength, 5.0);


More information about the MPlayer-cvslog mailing list