Commit d547b0ef authored by Simon Morlat's avatar Simon Morlat

don't print an error in opus encoder when sample rate requested is not...

don't print an error in opus encoder when sample rate requested is not possible, because it is a normal operation.
parent 3e0d41ac
...@@ -425,11 +425,11 @@ static int ms_opus_enc_set_sample_rate(MSFilter *f, void *arg) { ...@@ -425,11 +425,11 @@ static int ms_opus_enc_set_sample_rate(MSFilter *f, void *arg) {
/* check values: supported are 8, 12, 16, 24 and 48 kHz */ /* check values: supported are 8, 12, 16, 24 and 48 kHz */
switch (samplerate) { switch (samplerate) {
case 8000:case 12000:case 16000:case 24000:case 48000: case 8000:case 12000:case 16000:case 24000:case 48000:
d->samplerate=samplerate; d->samplerate = samplerate;
break; break;
default: default:
ms_error("Opus encoder got unsupported sample rate of %d, switch to default 48kHz",samplerate); ms_message("Opus encoder got unsupported sample rate of %d, will suggest to use default 48kHz instead",samplerate);
d->samplerate=48000; d->samplerate = 48000;
} }
return 0; return 0;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment