ref: 2bf4e44e1b5e35c68aec3cd23d87183d1ca6c686
parent: dae5c333e1a054483541558ae54aee6bf8fbe6bc
author: Koen Vos <[email protected]>
date: Sun Jul 4 17:22:58 EDT 2010
Moving ec_enc_done() outside of the API call.
--- a/src_FLP/SKP_Silk_encode_frame_FLP.c
+++ b/src_FLP/SKP_Silk_encode_frame_FLP.c
@@ -211,7 +211,7 @@
if( *pnBytesOut >= nBytes ) {
//SKP_int bits_in_stream, mask;
//bits_in_stream = ec_enc_tell( psRangeEnc, 0 );
- ec_enc_done( psRangeEnc );
+ //ec_enc_done( psRangeEnc );
#if 0
/* Fill up any remaining bits in the last byte with 1s */
--- a/test/Encoder.c
+++ b/test/Encoder.c
@@ -265,6 +265,10 @@
}
tottime += GetHighResolutionTime() - starttime;
+ /* Finish up the range coder */
+ ec_enc_done( &range_enc_celt_state );
+
+
#ifdef SKP_MACRO_COUNT
Ops = SKP_SaveResetCount();
if( Ops > maxOps ){ maxOps = Ops; }