Skip to content

Commit 08e7575

Browse files
committed
Merge pull request #250 from cchampet/fix_outputFileRewrapAudio
OutputFile: fix AVCodecContext of stream when addAudioStream
2 parents 6116b64 + b428c88 commit 08e7575

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
@@ -74,6 +74,7 @@ IOutputStream& OutputFile::addAudioStream( const AudioCodec& audioDesc )
7474
stream.codec->sample_rate = audioDesc.getAVCodecContext().sample_rate;
7575
stream.codec->channels = audioDesc.getAVCodecContext().channels;
7676
stream.codec->sample_fmt = audioDesc.getAVCodecContext().sample_fmt;
77+
stream.codec->frame_size = audioDesc.getAVCodecContext().frame_size;
7778

7879
// need to set the time_base on the AVCodecContext of the AVStream
7980
av_reduce(

0 commit comments

Comments
 (0)