Skip to content

Commit

Permalink
Refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
darbyjohnston committed Sep 17, 2024
1 parent 0c22102 commit 1c93028
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
7 changes: 4 additions & 3 deletions bin/toucan-render/App.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -186,17 +186,17 @@ namespace toucan
std::cout << timeRange.start_time().value() << std::endl;
return 0;
}
if (_options.printDuration)
else if (_options.printDuration)
{
std::cout << timeRange.duration().value() << std::endl;
return 0;
}
if (_options.printRate)
else if (_options.printRate)
{
std::cout << timeRange.duration().rate() << std::endl;
return 0;
}
if (_options.printSize)
else if (_options.printSize)
{
std::cout << imageSize.x << "x" << imageSize.y << std::endl;
return 0;
Expand Down Expand Up @@ -361,6 +361,7 @@ namespace toucan
{
std::cout << "Usage:" << std::endl;
std::cout << " toucan-render (input) (output) [options...]" << std::endl;
std::cout << " toucan-render (input) (-print_start|-print_duration|-print_rate|-print_size)" << std::endl;
std::cout << std::endl;
std::cout << "Arguments:" << std::endl;
for (const auto& arg : _args.list)
Expand Down
6 changes: 3 additions & 3 deletions lib/toucan/FFmpegRead.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ namespace toucan
FFmpegRead::FFmpegRead(const std::filesystem::path& path) :
_path(path)
{
//av_log_set_level(AV_LOG_QUIET);
av_log_set_level(AV_LOG_VERBOSE);
av_log_set_callback(logCallback);
av_log_set_level(AV_LOG_QUIET);
//av_log_set_level(AV_LOG_VERBOSE);
//av_log_set_callback(logCallback);

const std::string fileName = path.string();
int r = avformat_open_input(
Expand Down

0 comments on commit 1c93028

Please sign in to comment.