diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2023-09-03 23:53:50 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2023-09-07 00:28:27 +0200 |
commit | ee25dcd5fbf2a23bc59ebcd247c06ec6898cea12 (patch) | |
tree | b629165f37683ad7cde502793edfb08e12726d7c | |
parent | a20bd659340dbbf6c53732784303e34358c5fe11 (diff) | |
download | ffmpeg-ee25dcd5fbf2a23bc59ebcd247c06ec6898cea12.tar.gz |
avformat/matroskdec: Reindent after the previous commit
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r-- | libavformat/matroskadec.c | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c index 7adb72aa23..d6545fd30d 100644 --- a/libavformat/matroskadec.c +++ b/libavformat/matroskadec.c @@ -2748,32 +2748,32 @@ static int mka_parse_audio(MatroskaTrack *track, AVStream *st, if (ret) return ret; - par->codec_type = AVMEDIA_TYPE_AUDIO; - par->sample_rate = track->audio.out_samplerate; - // channel layout may be already set by codec private checks above - if (!av_channel_layout_check(&par->ch_layout)) { - par->ch_layout.order = AV_CHANNEL_ORDER_UNSPEC; - par->ch_layout.nb_channels = track->audio.channels; - } - if (!par->bits_per_coded_sample) - par->bits_per_coded_sample = track->audio.bitdepth; - if (par->codec_id == AV_CODEC_ID_MP3 || - par->codec_id == AV_CODEC_ID_MLP || - par->codec_id == AV_CODEC_ID_TRUEHD) - sti->need_parsing = AVSTREAM_PARSE_FULL; - else if (par->codec_id != AV_CODEC_ID_AAC) - sti->need_parsing = AVSTREAM_PARSE_HEADERS; - if (track->codec_delay > 0) { - par->initial_padding = av_rescale_q(track->codec_delay, - (AVRational){1, 1000000000}, - (AVRational){1, par->codec_id == AV_CODEC_ID_OPUS ? - 48000 : par->sample_rate}); - } - if (track->seek_preroll > 0) { - par->seek_preroll = av_rescale_q(track->seek_preroll, - (AVRational){1, 1000000000}, - (AVRational){1, par->sample_rate}); - } + par->codec_type = AVMEDIA_TYPE_AUDIO; + par->sample_rate = track->audio.out_samplerate; + // channel layout may be already set by codec private checks above + if (!av_channel_layout_check(&par->ch_layout)) { + par->ch_layout.order = AV_CHANNEL_ORDER_UNSPEC; + par->ch_layout.nb_channels = track->audio.channels; + } + if (!par->bits_per_coded_sample) + par->bits_per_coded_sample = track->audio.bitdepth; + if (par->codec_id == AV_CODEC_ID_MP3 || + par->codec_id == AV_CODEC_ID_MLP || + par->codec_id == AV_CODEC_ID_TRUEHD) + sti->need_parsing = AVSTREAM_PARSE_FULL; + else if (par->codec_id != AV_CODEC_ID_AAC) + sti->need_parsing = AVSTREAM_PARSE_HEADERS; + if (track->codec_delay > 0) { + par->initial_padding = av_rescale_q(track->codec_delay, + (AVRational){1, 1000000000}, + (AVRational){1, par->codec_id == AV_CODEC_ID_OPUS ? + 48000 : par->sample_rate}); + } + if (track->seek_preroll > 0) { + par->seek_preroll = av_rescale_q(track->seek_preroll, + (AVRational){1, 1000000000}, + (AVRational){1, par->sample_rate}); + } return 0; } |