shithub: aacenc

Download patch

ref: 2cb6f6fc2d3f5969d187b7b1ed7b4dc5348b1d3b
parent: 2ed7f5e8c644dcbee5c7776ec979899bcbd842fe
author: menno <menno>
date: Fri Jan 21 10:41:43 EST 2000

Bug fix

--- a/encoder.c
+++ b/encoder.c
@@ -99,8 +99,10 @@
 			-1,			/* in: 100dB cutoff freq / input bandwidth */
 			samplesToRead);		/* out: num input samples / frame */
 		as->samplesToRead = *samplesToRead;
-	} else
+	} else {
 		*samplesToRead = 1024*as->channels;
+		as->samplesToRead = *samplesToRead;
+	}
 
 	as->savedSize = 0;