ref: e4b3ab8d26e91a37ed9757b9a6e2e54dc5423309
parent: 3e76dc06a0ad69ae194e923fb925b3d66d3da96e
author: menno <menno>
date: Wed Oct 4 16:07:08 EDT 2000
Wrong bits per frame got calculated
--- a/encoder.c
+++ b/encoder.c
@@ -256,7 +256,7 @@
continue;
}
- bitBuf = BsOpenWrite(as->frame_bits * as->channels * 10);
+ bitBuf = BsOpenWrite(as->frame_bits * 10);
/* compute available number of bits */
/* frameAvailNumBit contains number of bits in reservoir */
@@ -265,7 +265,7 @@
as->available_bits = 8184;
/* Add to frameAvailNumBit the number of bits for this frame */
- as->available_bits += (as->frame_bits * as->channels);
+ as->available_bits += as->frame_bits;
/* Encode frame */
error = EncTfFrame(as, bitBuf);