We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1bb6d78 commit 23d4b31Copy full SHA for 23d4b31
src/opus_demo.c
@@ -803,9 +803,9 @@ int main(int argc, char *argv[])
803
dred_dec = opus_dred_decoder_create(&err);
804
dred = opus_dred_alloc(&err);
805
#ifdef USE_WEIGHTS_FILE
806
- opus_encoder_ctl(enc, OPUS_SET_DNN_BLOB(blob_data, blob_len));
807
- opus_decoder_ctl(dec, OPUS_SET_DNN_BLOB(blob_data, blob_len));
808
- 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));
809
#endif
810
while (!stop)
811
{
0 commit comments