History

fftools/ffmpeg: reindent after previous commit

Anton Khirnov committed 3 years ago

Commit 2104de11 parent 6cace171 file · +14 −15Browse files

Unified · Split

fftools/ffmpeg_mux_init.c+14−15
@@ -128,21 +128,20 @@ static int choose_encoder(const OptionsContext *o, AVFormatContext *s, · 127 unmodified lines
128128 return 0;
129129 }
130130
131− if (!codec_name) {
132− ost->par_in->codec_id = av_guess_codec(s->oformat, NULL, s->url,
133− NULL, ost->type);
134− *enc = avcodec_find_encoder(ost->par_in->codec_id);
135− if (!*enc) {
136− av_log(ost, AV_LOG_FATAL, "Automatic encoder selection failed "
137− "Default encoder for format %s (codec %s) is "
138− "probably disabled. Please choose an encoder manually.\n",
139− s->oformat->name, avcodec_get_name(ost->par_in->codec_id));
140− return AVERROR_ENCODER_NOT_FOUND;
141− }
142− } else if (strcmp(codec_name, "copy")) {
143− *enc = find_codec_or_die(ost, codec_name, ost->type, 1);
144− ost->par_in->codec_id = (*enc)->id;
145− }
131+ if (!codec_name) {
132+ ost->par_in->codec_id = av_guess_codec(s->oformat, NULL, s->url, NULL, ost->type);
133+ *enc = avcodec_find_encoder(ost->par_in->codec_id);
134+ if (!*enc) {
135+ av_log(ost, AV_LOG_FATAL, "Automatic encoder selection failed "
136+ "Default encoder for format %s (codec %s) is "
137+ "probably disabled. Please choose an encoder manually.\n",
138+ s->oformat->name, avcodec_get_name(ost->par_in->codec_id));
139+ return AVERROR_ENCODER_NOT_FOUND;
140+ }
141+ } else if (strcmp(codec_name, "copy")) {
142+ *enc = find_codec_or_die(ost, codec_name, ost->type, 1);
143+ ost->par_in->codec_id = (*enc)->id;
144+ }
146145
147146 return 0;
148147 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t