diff options
Diffstat (limited to 'src/opus_demo.c')
-rw-r--r-- | src/opus_demo.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/opus_demo.c b/src/opus_demo.c index 563d3c5b..b48845c9 100644 --- a/src/opus_demo.c +++ b/src/opus_demo.c @@ -617,9 +617,6 @@ int main(int argc, char *argv[]) goto failure; } } -#ifdef USE_WEIGHTS_FILE - opus_decoder_ctl(dec, OPUS_SET_DNN_BLOB(blob_data, blob_len)); -#endif switch(bandwidth) { case OPUS_BANDWIDTH_NARROWBAND: @@ -684,6 +681,11 @@ int main(int argc, char *argv[]) } dred_dec = opus_dred_decoder_create(&err); dred = opus_dred_alloc(&err); +#ifdef USE_WEIGHTS_FILE + opus_encoder_ctl(enc, OPUS_SET_DNN_BLOB(blob_data, blob_len)); + opus_decoder_ctl(dec, OPUS_SET_DNN_BLOB(blob_data, blob_len)); + opus_dred_decoder_ctl(dred_dec, OPUS_SET_DNN_BLOB(blob_data, blob_len)); +#endif while (!stop) { if (delayed_celt) |