Skip to content

Commit 4195029

Browse files
author
Clement Champetier
committed
fix get sample_fmt parameter from profile
1 parent f536dc8 commit 4195029

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/AvTranscoder/EssenceStream/OutputAudio.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,8 @@ void OutputAudio::setProfile( Profile::ProfileDesc& desc, const AudioFrameDesc&
182182
_audioDesc.setAudioCodec( desc[ Profile::avProfileCodec ] );
183183
size_t sample_rate = std::strtoul( desc[ Profile::avProfileSampleRate ].c_str(), NULL, 0 );
184184
size_t channels = std::strtoul( desc[ Profile::avProfileChannel ].c_str(), NULL, 0 );
185-
_audioDesc.setAudioParameters( sample_rate, channels, av_get_sample_fmt( Profile::avProfileSampleFormat.c_str() ) );
185+
186+
_audioDesc.setAudioParameters( sample_rate, channels, av_get_sample_fmt( desc[ Profile::avProfileSampleFormat ].c_str() ) );
186187

187188
setup();
188189
}

0 commit comments

Comments
 (0)