[xiph-commits] r18082 - trunk/cronus/src/com/meviatronic/zeus/castor

mike at svn.xiph.org mike at svn.xiph.org
Mon Sep 12 08:02:51 PDT 2011


Author: mike
Date: 2011-09-12 08:02:51 -0700 (Mon, 12 Sep 2011)
New Revision: 18082

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

Modified: trunk/cronus/src/com/meviatronic/zeus/castor/VorbisDecoder.java
===================================================================
--- trunk/cronus/src/com/meviatronic/zeus/castor/VorbisDecoder.java	2011-09-11 01:47:30 UTC (rev 18081)
+++ trunk/cronus/src/com/meviatronic/zeus/castor/VorbisDecoder.java	2011-09-12 15:02:51 UTC (rev 18082)
@@ -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