[FFmpeg-cvslog] avformat/matroskdec: Reindent after the previous commit

Andreas Rheinhardt git at videolan.org
Thu Sep 7 02:19:04 EEST 2023


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Sun Sep  3 23:53:50 2023 +0200| [ee25dcd5fbf2a23bc59ebcd247c06ec6898cea12] | committer: Andreas Rheinhardt

avformat/matroskdec: Reindent after the previous commit

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ee25dcd5fbf2a23bc59ebcd247c06ec6898cea12
---

 libavformat/matroskadec.c | 52 +++++++++++++++++++++++------------------------
 1 file 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;
 }



More information about the ffmpeg-cvslog mailing list