fftools/ffmpeg_opt: reduce indentation in map_auto_subtitle()
Fix indentation after the previous commit. Also use an early return to save one extra indentation level.
This commit is contained in:
parent
6ab412ef9c
commit
6bd98d9ed8
@ -2584,9 +2584,12 @@ static void map_auto_subtitle(OutputFile *of, AVFormatContext *oc,
|
|||||||
OptionsContext *o)
|
OptionsContext *o)
|
||||||
{
|
{
|
||||||
char *subtitle_codec_name = NULL;
|
char *subtitle_codec_name = NULL;
|
||||||
|
|
||||||
/* subtitles: pick first */
|
/* subtitles: pick first */
|
||||||
MATCH_PER_TYPE_OPT(codec_names, str, subtitle_codec_name, oc, "s");
|
MATCH_PER_TYPE_OPT(codec_names, str, subtitle_codec_name, oc, "s");
|
||||||
if ((avcodec_find_encoder(oc->oformat->subtitle_codec) || subtitle_codec_name)) {
|
if (!avcodec_find_encoder(oc->oformat->subtitle_codec) && !subtitle_codec_name)
|
||||||
|
return;
|
||||||
|
|
||||||
for (int i = 0; i < nb_input_streams; i++)
|
for (int i = 0; i < nb_input_streams; i++)
|
||||||
if (input_streams[i]->st->codecpar->codec_type == AVMEDIA_TYPE_SUBTITLE) {
|
if (input_streams[i]->st->codecpar->codec_type == AVMEDIA_TYPE_SUBTITLE) {
|
||||||
AVCodecDescriptor const *input_descriptor =
|
AVCodecDescriptor const *input_descriptor =
|
||||||
@ -2614,7 +2617,6 @@ static void map_auto_subtitle(OutputFile *of, AVFormatContext *oc,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
static int open_output_file(OptionsContext *o, const char *filename)
|
static int open_output_file(OptionsContext *o, const char *filename)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user