shithub: opus

Download patch

ref: d3dc19ba3dbcfa6fb8438a106917f01d758dd339
parent: 3acddca243060b9340f5cd0a9f602474ac4fb178
author: Jean-Marc Valin <[email protected]>
date: Mon Feb 28 11:29:02 EST 2011

SILK/CELT update

--- a/src/opus_encoder.c
+++ b/src/opus_encoder.c
@@ -155,9 +155,9 @@
         /* Call SILK encoder for the low band */
         nBytes = max_data_bytes-1;
         if (prefill)
-    		SKP_Silk_SDK_Encoder_prefill_buffer(st->silk_enc, &st->silk_mode, st->delay_buffer, ENCODER_BUFFER);
+        	SKP_Silk_SDK_Encode( st->silk_enc, &st->silk_mode, st->delay_buffer, ENCODER_BUFFER, NULL, 0, 1 );
 
-        ret = SKP_Silk_SDK_Encode( st->silk_enc, &st->silk_mode, pcm, frame_size, &enc, &nBytes );
+        ret = SKP_Silk_SDK_Encode( st->silk_enc, &st->silk_mode, pcm, frame_size, &enc, &nBytes, 0 );
         if( ret ) {
             fprintf (stderr, "SILK encode error: %d\n", ret);
             /* Handle error */