File tree Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -192,18 +192,16 @@ OptionArrayMap getAvailableOptionsPerOutputFormat()
192
192
// iterate on formats
193
193
while (outputFormat)
194
194
{
195
- // add only format with video track
196
- // outputFormat->audio_codec ?
197
- if (outputFormat->video_codec != AV_CODEC_ID_NONE)
195
+ if (!outputFormat->name )
196
+ continue ;
197
+
198
+ const std::string outputFormatName (outputFormat->name );
199
+ OptionArray options;
200
+ if (outputFormat->priv_class )
198
201
{
199
- if (outputFormat->priv_class )
200
- {
201
- const std::string outputFormatName (outputFormat->name );
202
- OptionArray options;
203
- loadOptions (options, (void *)&outputFormat->priv_class , 0 );
204
- optionsPerFormat.insert (std::make_pair (outputFormatName, options));
205
- }
202
+ loadOptions (options, (void *)&outputFormat->priv_class , 0 );
206
203
}
204
+ optionsPerFormat.insert (std::make_pair (outputFormatName, options));
207
205
outputFormat = av_oformat_next (outputFormat);
208
206
}
209
207
return optionsPerFormat;
You can’t perform that action at this time.
0 commit comments