[XviD-devel] [PATCH] Stable tree fixed, someone to apply this against dev-api-3

Edouard Gomez xvid-devel@xvid.org
Fri, 20 Sep 2002 21:57:51 +0200


Edouard Gomez (ed.gomez@wanadoo.fr) wrote:
> I'm investigating that... if someone  else is also working on that bug
> please mail me your already done work, so we do not things twice.

UPGRADE your xvid else you'll get segfaults all the time with LUMI masking.

Easy fix... moreover the bug was my fault ... yeah i'm guilty :-)

I'll commit to stable tree. Here is the fix for dev-api-3 (i'll not fix this tree, someone to do it please) :

Index: adapt_quant.c
===================================================================
RCS file: /xvid/xvidcore/src/quant/adapt_quant.c,v
retrieving revision 1.7
diff -u -r1.7 adapt_quant.c
--- adapt_quant.c	7 Sep 2002 12:51:38 -0000	1.7
+++ adapt_quant.c	20 Sep 2002 19:54:15 -0000
@@ -168,8 +168,14 @@
 			}
 		}
 	}
+
+	i = normalize_quantizer_field(quant, intquant,
+								  mb_width * mb_height,
+								  min_quant, max_quant);
+
 	free(val);
 	free(quant);
-	return normalize_quantizer_field(quant, intquant, mb_width * mb_height,
-									 min_quant, max_quant);
+
+	return(i);
+
 }

-- 
Edouard Gomez