History

avformat/matroskdec: Reindent after the previous commit

Andreas Rheinhardt committed 3 years ago

Commit ee25dcd1 parent a20bd651 file · +26 −26Browse files

Showing the changes to libavformat (1 of 1 file). Show all

Unified · Split

libavformat/matroskadec.c+26−26
@@ -2748,32 +2748,32 @@ static int mka_parse_audio(MatroskaTrack *track, AVStream *st, · 2747 unmodified lines
27482748 if (ret)
27492749 return ret;
27502750
2751− par->codec_type = AVMEDIA_TYPE_AUDIO;
2752− par->sample_rate = track->audio.out_samplerate;
2753− // channel layout may be already set by codec private checks above
2754− if (!av_channel_layout_check(&par->ch_layout)) {
2755− par->ch_layout.order = AV_CHANNEL_ORDER_UNSPEC;
2756− par->ch_layout.nb_channels = track->audio.channels;
2757− }
2758− if (!par->bits_per_coded_sample)
2759− par->bits_per_coded_sample = track->audio.bitdepth;
2760− if (par->codec_id == AV_CODEC_ID_MP3 ||
2761− par->codec_id == AV_CODEC_ID_MLP ||
2762− par->codec_id == AV_CODEC_ID_TRUEHD)
2763− sti->need_parsing = AVSTREAM_PARSE_FULL;
2764− else if (par->codec_id != AV_CODEC_ID_AAC)
2765− sti->need_parsing = AVSTREAM_PARSE_HEADERS;
2766− if (track->codec_delay > 0) {
2767− par->initial_padding = av_rescale_q(track->codec_delay,
2768− (AVRational){1, 1000000000},
2769− (AVRational){1, par->codec_id == AV_CODEC_ID_OPUS ?
2770− 48000 : par->sample_rate});
2771− }
2772− if (track->seek_preroll > 0) {
2773− par->seek_preroll = av_rescale_q(track->seek_preroll,
2774− (AVRational){1, 1000000000},
2775− (AVRational){1, par->sample_rate});
2776− }
2751+ par->codec_type = AVMEDIA_TYPE_AUDIO;
2752+ par->sample_rate = track->audio.out_samplerate;
2753+ // channel layout may be already set by codec private checks above
2754+ if (!av_channel_layout_check(&par->ch_layout)) {
2755+ par->ch_layout.order = AV_CHANNEL_ORDER_UNSPEC;
2756+ par->ch_layout.nb_channels = track->audio.channels;
2757+ }
2758+ if (!par->bits_per_coded_sample)
2759+ par->bits_per_coded_sample = track->audio.bitdepth;
2760+ if (par->codec_id == AV_CODEC_ID_MP3 ||
2761+ par->codec_id == AV_CODEC_ID_MLP ||
2762+ par->codec_id == AV_CODEC_ID_TRUEHD)
2763+ sti->need_parsing = AVSTREAM_PARSE_FULL;
2764+ else if (par->codec_id != AV_CODEC_ID_AAC)
2765+ sti->need_parsing = AVSTREAM_PARSE_HEADERS;
2766+ if (track->codec_delay > 0) {
2767+ par->initial_padding = av_rescale_q(track->codec_delay,
2768+ (AVRational){1, 1000000000},
2769+ (AVRational){1, par->codec_id == AV_CODEC_ID_OPUS ?
2770+ 48000 : par->sample_rate});
2771+ }
2772+ if (track->seek_preroll > 0) {
2773+ par->seek_preroll = av_rescale_q(track->seek_preroll,
2774+ (AVRational){1, 1000000000},
2775+ (AVRational){1, par->sample_rate});
2776+ }
27772777
27782778 return 0;
27792779 }

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