[mod_silk] Fix mod_silk always init with maxaveragebitrate=20000

This commit is contained in:
sunlin 2020-05-08 05:52:39 +08:00 committed by GitHub
parent 262220085e
commit 43b35ae4f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -175,6 +175,11 @@ static switch_status_t switch_silk_init(switch_codec_t *codec,
}
memset(&codec_fmtp, '\0', sizeof(struct switch_codec_fmtp));
codec_fmtp.actual_samples_per_second = codec->implementation->actual_samples_per_second;
codec_fmtp.bits_per_second = codec->implementation->bits_per_second;
codec_fmtp.microseconds_per_packet = codec->implementation->microseconds_per_packet;
codec_fmtp.stereo = codec->implementation->number_of_channels > 1;
codec_fmtp.private_info = &silk_codec_settings;
switch_silk_fmtp_parse(codec->fmtp_in, &codec_fmtp);