Skip to content

Commit 7efb612

Browse files
author
Clement Champetier
committed
util - getOutputFormatOptions: clean
1 parent f14cddf commit 7efb612

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/AvTranscoder/util.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -201,9 +201,7 @@ NamesArray getAudioCodecsNames()
201201

202202
OptionArrayMap getOutputFormatOptions()
203203
{
204-
av_register_all();
205-
206-
std::map< std::string, std::vector<Option> > optionsPerFormat;
204+
OptionArrayMap optionsPerFormat;
207205

208206
AVOutputFormat* outputFormat = av_oformat_next( NULL );
209207

@@ -216,7 +214,7 @@ OptionArrayMap getOutputFormatOptions()
216214
{
217215
if( outputFormat->priv_class )
218216
{
219-
std::string outputFormatName( outputFormat->name );
217+
const std::string outputFormatName( outputFormat->name );
220218
OptionArray options;
221219
loadOptions( options, (void*)&outputFormat->priv_class, 0 );
222220
optionsPerFormat.insert( std::make_pair( outputFormatName, options ) );

0 commit comments

Comments
 (0)