[FFmpeg-devel] [PATCH v3 3/3] lavf/dashdec: Fix indentation after multithreading
Lukas Fellechner
lukas.fellechner at gmx.net
Tue Aug 23 22:03:26 EEST 2022
---
libavformat/dashdec.c | 74 +++++++++++++++++++++----------------------
1 file changed, 37 insertions(+), 37 deletions(-)
diff --git a/libavformat/dashdec.c b/libavformat/dashdec.c
index 20f2557ea3..f653b9850e 100644
--- a/libavformat/dashdec.c
+++ b/libavformat/dashdec.c
@@ -2412,54 +2412,54 @@ static int dash_read_header(AVFormatContext *s)
}
else
{
- /* Open the demuxer for video and audio components if available */
- for (i = 0; i < c->n_videos; i++) {
- rep = c->videos[i];
- if (i > 0 && c->is_init_section_common_video) {
- ret = copy_init_section(rep, c->videos[0]);
- if (ret < 0)
+ /* Open the demuxer for video and audio components if available */
+ for (i = 0; i < c->n_videos; i++) {
+ rep = c->videos[i];
+ if (i > 0 && c->is_init_section_common_video) {
+ ret = copy_init_section(rep, c->videos[0]);
+ if (ret < 0)
+ return ret;
+ }
+ ret = open_demux_for_component(s, rep);
+
+ if (ret)
return ret;
+ rep->stream_index = stream_index;
+ ++stream_index;
}
- ret = open_demux_for_component(s, rep);
- if (ret)
- return ret;
- rep->stream_index = stream_index;
- ++stream_index;
- }
+ for (i = 0; i < c->n_audios; i++) {
+ rep = c->audios[i];
+ if (i > 0 && c->is_init_section_common_audio) {
+ ret = copy_init_section(rep, c->audios[0]);
+ if (ret < 0)
+ return ret;
+ }
+ ret = open_demux_for_component(s, rep);
- for (i = 0; i < c->n_audios; i++) {
- rep = c->audios[i];
- if (i > 0 && c->is_init_section_common_audio) {
- ret = copy_init_section(rep, c->audios[0]);
- if (ret < 0)
+ if (ret)
return ret;
+ rep->stream_index = stream_index;
+ ++stream_index;
}
- ret = open_demux_for_component(s, rep);
- if (ret)
- return ret;
- rep->stream_index = stream_index;
- ++stream_index;
- }
+ for (i = 0; i < c->n_subtitles; i++) {
+ rep = c->subtitles[i];
+ if (i > 0 && c->is_init_section_common_subtitle) {
+ ret = copy_init_section(rep, c->subtitles[0]);
+ if (ret < 0)
+ return ret;
+ }
+ ret = open_demux_for_component(s, rep);
- for (i = 0; i < c->n_subtitles; i++) {
- rep = c->subtitles[i];
- if (i > 0 && c->is_init_section_common_subtitle) {
- ret = copy_init_section(rep, c->subtitles[0]);
- if (ret < 0)
+ if (ret)
return ret;
+ rep->stream_index = stream_index;
+ ++stream_index;
}
- ret = open_demux_for_component(s, rep);
- if (ret)
- return ret;
- rep->stream_index = stream_index;
- ++stream_index;
- }
-
- if (!stream_index)
- return AVERROR_INVALIDDATA;
+ if (!stream_index)
+ return AVERROR_INVALIDDATA;
}
/* Create a program */
--
2.31.1.windows.1
More information about the ffmpeg-devel
mailing list