mirror of
https://github.com/ossrs/srs.git
synced 2025-02-15 04:42:04 +00:00
Merge branch 'develop' into merge/develop
This commit is contained in:
commit
67adefd391
1 changed files with 2 additions and 0 deletions
|
@ -147,6 +147,8 @@ srs_error_t SrsAudioTranscoder::init_dec(SrsAudioCodecId src_codec)
|
|||
if (avcodec_open2(dec_, codec, NULL) < 0) {
|
||||
return srs_error_new(ERROR_RTC_RTP_MUXER, "Could not open codec");
|
||||
}
|
||||
|
||||
dec_->channel_layout = av_get_default_channel_layout(dec_->channels);
|
||||
|
||||
dec_frame_ = av_frame_alloc();
|
||||
if (!dec_frame_) {
|
||||
|
|
Loading…
Reference in a new issue