mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Bridger: Fix build fail if disable rtc and ffmpeg-fit
This commit is contained in:
parent
3d225973ef
commit
8a30cc86d9
3 changed files with 4 additions and 2 deletions
|
@ -197,7 +197,7 @@ srs_error_t SrsAudioTranscoder::init_enc(SrsAudioCodecId dst_codec, int dst_chan
|
|||
enc_->channel_layout = av_get_default_channel_layout(dst_channels);
|
||||
enc_->bit_rate = dst_bit_rate;
|
||||
enc_->sample_fmt = codec->sample_fmts[0];
|
||||
enc_->time_base = {1, 1000};
|
||||
enc_->time_base.num = 1; enc_->time_base.den = 1000; // {1, 1000}
|
||||
if (dst_codec == SrsAudioCodecIdOpus) {
|
||||
//TODO: for more level setting
|
||||
enc_->compression_level = 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue