[xiph-commits] r15588 - trunk/gimp-montypak

xiphmont at svn.xiph.org xiphmont at svn.xiph.org
Wed Dec 17 07:43:48 PST 2008


Author: xiphmont
Date: 2008-12-17 07:43:47 -0800 (Wed, 17 Dec 2008)
New Revision: 15588

Modified:
   trunk/gimp-montypak/denoise.c
Log:
Correct a concurrency bug 



Modified: trunk/gimp-montypak/denoise.c
===================================================================
--- trunk/gimp-montypak/denoise.c	2008-12-17 15:27:34 UTC (rev 15587)
+++ trunk/gimp-montypak/denoise.c	2008-12-17 15:43:47 UTC (rev 15588)
@@ -810,6 +810,10 @@
 static int compute_mask(guchar *buffer, float *luma, float *Pb, float *Pr,
 			int w, int h, int p, int(*check)(void)){
   int i,j;
+
+  if(!luma) return 1;
+  if(p>2 && (!Pb || !Pr)) return 1;
+
   if(denoise_params.lowlight){
     float l = denoise_params.lowlight_adj*.01;
     float med = variance_median*8.f;



More information about the commits mailing list