Skip to content

Commit 323cb0c

Browse files
author
Clement Champetier
committed
OutputAudio: setProfile - refactoring
1 parent 144b8fc commit 323cb0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AvTranscoder/EssenceStream/OutputAudio.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,9 +187,9 @@ void OutputAudio::setProfile( Profile::ProfileDesc& desc, const AudioFrameDesc&
187187
}
188188

189189
_audioDesc.setAudioCodec( desc[ Profile::avProfileCodec ] );
190+
190191
size_t sample_rate = std::strtoul( desc[ Profile::avProfileSampleRate ].c_str(), NULL, 0 );
191192
size_t channels = std::strtoul( desc[ Profile::avProfileChannel ].c_str(), NULL, 0 );
192-
193193
_audioDesc.setAudioParameters( sample_rate, channels, av_get_sample_fmt( desc[ Profile::avProfileSampleFormat ].c_str() ) );
194194

195195
setup();

0 commit comments

Comments
 (0)