File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,9 @@ std::vector<avtranscoder::InputStreamDesc> parseConfigFile(const std::string& co
20
20
while (std::getline (configFile, line))
21
21
{
22
22
if (++countLines > 2 )
23
+ {
23
24
throw std::runtime_error (" Audio phase analysis can only be done on a stereo pair, i.e. two channels (see usage)." );
25
+ }
24
26
25
27
std::istringstream is_line (line);
26
28
std::string filename;
@@ -36,7 +38,9 @@ std::vector<avtranscoder::InputStreamDesc> parseConfigFile(const std::string& co
36
38
ss >> streamIndex;
37
39
ss >> separator;
38
40
if (separator == ' .' )
41
+ {
39
42
ss >> channelIndex;
43
+ }
40
44
41
45
bool newInputDescAdded = false ;
42
46
// if we already have an input description with the same filename/streamIndex, add only the new channelIndex
@@ -49,8 +53,10 @@ std::vector<avtranscoder::InputStreamDesc> parseConfigFile(const std::string& co
49
53
break ;
50
54
}
51
55
}
52
- if (! newInputDescAdded)
56
+ if (!newInputDescAdded)
57
+ {
53
58
result.push_back (avtranscoder::InputStreamDesc (filename, streamIndex, channelIndex));
59
+ }
54
60
}
55
61
}
56
62
@@ -83,7 +89,8 @@ int main(int argc, char** argv)
83
89
avtranscoder::preloadCodecsAndFormats ();
84
90
avtranscoder::Logger::setLogLevel (AV_LOG_QUIET);
85
91
86
- if (argc < 3 ) {
92
+ if (argc < 3 )
93
+ {
87
94
displayUsage (argv[0 ]);
88
95
}
89
96
You can’t perform that action at this time.
0 commit comments