Skip to content

Commit 019e23c

Browse files
author
Clement Champetier
committed
OutputFile: fix AVCodecContext of stream when addAudioStream
1 parent 6116b64 commit 019e23c

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)