History

avformat/matroskaenc: Reindent after previous commit

Also remove { } after an if if there is only one statement inside { }.

Andreas Rheinhardt committed 6 years ago

Commit bc52ce31 parent 0d4b3b41 file · +14 −15Browse files

Unified · Split

libavformat/matroskaenc.c+14−15
@@ -1284,22 +1284,21 @@ static int mkv_write_track(AVFormatContext *s, MatroskaMuxContext *mkv, · 1283 unmodified lines
12841284
12851285 case AVMEDIA_TYPE_AUDIO:
12861286 if (par->initial_padding && par->codec_id == AV_CODEC_ID_OPUS) {
1287− int64_t codecdelay = av_rescale_q(par->initial_padding,
1288− (AVRational){ 1, 48000 },
1289− (AVRational){ 1, 1000000000 });
1290− if (codecdelay < 0) {
1291− av_log(s, AV_LOG_ERROR, "Initial padding is invalid\n");
1292− return AVERROR(EINVAL);
1293− }
1294−// mkv->tracks[i].ts_offset = av_rescale_q(par->initial_padding,
1295−// (AVRational){ 1, par->sample_rate },
1296−// st->time_base);
1287+ int64_t codecdelay = av_rescale_q(par->initial_padding,
1288+ (AVRational){ 1, 48000 },
1289+ (AVRational){ 1, 1000000000 });
1290+ if (codecdelay < 0) {
1291+ av_log(s, AV_LOG_ERROR, "Initial padding is invalid\n");
1292+ return AVERROR(EINVAL);
1293+ }
1294+// mkv->tracks[i].ts_offset = av_rescale_q(par->initial_padding,
1295+// (AVRational){ 1, par->sample_rate },
1296+// st->time_base);
12971297
1298− put_ebml_uint(pb, MATROSKA_ID_CODECDELAY, codecdelay);
1299− }
1300− if (par->codec_id == AV_CODEC_ID_OPUS) {
1301− put_ebml_uint(pb, MATROSKA_ID_SEEKPREROLL, OPUS_SEEK_PREROLL);
1302− }
1298+ put_ebml_uint(pb, MATROSKA_ID_CODECDELAY, codecdelay);
1299+ }
1300+ if (par->codec_id == AV_CODEC_ID_OPUS)
1301+ put_ebml_uint(pb, MATROSKA_ID_SEEKPREROLL, OPUS_SEEK_PREROLL);
13031302
13041303 put_ebml_uint(pb, MATROSKA_ID_TRACKTYPE, MATROSKA_TRACK_TYPE_AUDIO);
13051304

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