Skip to content

Commit d4f2d8f

Browse files
author
Clement Champetier
committed
OutputFile: copy channel_layout for each audio stream added
1 parent 11af7c1 commit d4f2d8f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/AvTranscoder/file/OutputFile.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ IOutputStream& OutputFile::addAudioStream( const AudioCodec& audioDesc )
7373

7474
stream.codec->sample_rate = audioDesc.getAVCodecContext().sample_rate;
7575
stream.codec->channels = audioDesc.getAVCodecContext().channels;
76+
stream.codec->channel_layout = audioDesc.getAVCodecContext().channel_layout;
7677
stream.codec->sample_fmt = audioDesc.getAVCodecContext().sample_fmt;
7778
stream.codec->frame_size = audioDesc.getAVCodecContext().frame_size;
7879

0 commit comments

Comments
 (0)