[xiph-commits] r18083 - trunk/rhea/src/com/meviatronic/zeus/castor

mike at svn.xiph.org mike at svn.xiph.org
Mon Sep 12 08:03:49 PDT 2011


Author: mike
Date: 2011-09-12 08:03:49 -0700 (Mon, 12 Sep 2011)
New Revision: 18083

Modified:
   trunk/rhea/src/com/meviatronic/zeus/castor/VorbisDecoder.java
Log:
fixed bug in vorbis decoder related to mono processing

Modified: trunk/rhea/src/com/meviatronic/zeus/castor/VorbisDecoder.java
===================================================================
--- trunk/rhea/src/com/meviatronic/zeus/castor/VorbisDecoder.java	2011-09-12 15:02:51 UTC (rev 18082)
+++ trunk/rhea/src/com/meviatronic/zeus/castor/VorbisDecoder.java	2011-09-12 15:03:49 UTC (rev 18083)
@@ -639,6 +639,10 @@
 		float[] angleVector;
 		float m, a, newM, newA;
 		
+		if (magnitude == null) {
+			return;
+		}
+
 		for (int i = magnitude.length - 1; i >= 0; i--) {
 			magnitudeVector = residue[magnitude[i]];
 			angleVector = residue[angle[i]];



More information about the commits mailing list