Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit06a8c9e

Browse files
committed
Fix code blocks format
1 parentb899eab commit06a8c9e

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

‎app/avAudioPhaseMeter/avAudioPhaseMeter.cpp

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ std::vector<avtranscoder::InputStreamDesc> parseConfigFile(const std::string& co
2020
while(std::getline(configFile, line))
2121
{
2222
if(++countLines >2)
23+
{
2324
throwstd::runtime_error("Audio phase analysis can only be done on a stereo pair, i.e. two channels (see usage).");
25+
}
2426

2527
std::istringstreamis_line(line);
2628
std::string filename;
@@ -36,7 +38,9 @@ std::vector<avtranscoder::InputStreamDesc> parseConfigFile(const std::string& co
3638
ss >> streamIndex;
3739
ss >> separator;
3840
if(separator =='.')
41+
{
3942
ss >> channelIndex;
43+
}
4044

4145
bool newInputDescAdded =false;
4246
// 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
4953
break;
5054
}
5155
}
52-
if(! newInputDescAdded)
56+
if(!newInputDescAdded)
57+
{
5358
result.push_back(avtranscoder::InputStreamDesc(filename, streamIndex, channelIndex));
59+
}
5460
}
5561
}
5662

@@ -83,7 +89,8 @@ int main(int argc, char** argv)
8389
avtranscoder::preloadCodecsAndFormats();
8490
avtranscoder::Logger::setLogLevel(AV_LOG_QUIET);
8591

86-
if(argc <3) {
92+
if(argc <3)
93+
{
8794
displayUsage(argv[0]);
8895
}
8996

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp