diff options
author | Timothy B. Terriberry <tterribe@xiph.org> | 2011-02-03 14:52:50 -0800 |
---|---|---|
committer | Jean-Marc Valin <jean-marc.valin@usherbrooke.ca> | 2011-02-03 22:32:27 -0500 |
commit | a1dd0fcf93c241f2f8852080e0ed3f33d129ca14 (patch) | |
tree | 8b2ef6f798a1b4ef647ce0b1ad93806c32e39310 /src/opus_decoder.c | |
parent | 50b20d78a383a23f8840bc8f6ae223769638bd42 (diff) | |
download | opus-a1dd0fcf93c241f2f8852080e0ed3f33d129ca14.tar.gz |
Update Opus range coder due to CELT refactoring.
The byte buffer is now part of the range coder struct itself, and
rangeenc.c and rangedec.c have gone away.
Diffstat (limited to 'src/opus_decoder.c')
-rw-r--r-- | src/opus_decoder.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/opus_decoder.c b/src/opus_decoder.c index cb6fef2f..a57e1a26 100644 --- a/src/opus_decoder.c +++ b/src/opus_decoder.c @@ -79,7 +79,6 @@ int opus_decode(OpusDecoder *st, const unsigned char *data, { int i, silk_ret=0, celt_ret=0; ec_dec dec; - ec_byte_buffer buf; SKP_SILK_SDK_DecControlStruct DecControl; SKP_int32 silk_frame_size; short pcm_celt[960*2]; @@ -116,8 +115,7 @@ int opus_decode(OpusDecoder *st, const unsigned char *data, len -= 1; data += 1; - ec_byte_readinit(&buf,(unsigned char*)data,len); - ec_dec_init(&dec,&buf); + ec_dec_init(&dec,(unsigned char*)data,len); } else { audiosize = frame_size; } |