Skip to content

Commit

Permalink
Fix opus_demo -e/-d with weights blob
Browse files Browse the repository at this point in the history
  • Loading branch information
jmvalin committed Mar 4, 2024
1 parent 1bb6d78 commit 23d4b31
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/opus_demo.c
Original file line number Diff line number Diff line change
Expand Up @@ -803,9 +803,9 @@ 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));
if (enc) opus_encoder_ctl(enc, OPUS_SET_DNN_BLOB(blob_data, blob_len));
if (dec) opus_decoder_ctl(dec, OPUS_SET_DNN_BLOB(blob_data, blob_len));
if (dred_dec) opus_dred_decoder_ctl(dred_dec, OPUS_SET_DNN_BLOB(blob_data, blob_len));
#endif
while (!stop)
{
Expand Down

0 comments on commit 23d4b31

Please sign in to comment.