Skip to content

Commit 445db19

Browse files
committed
minor cleanup.
1 parent 754889b commit 445db19

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

CamEncoder/src/av_muxer.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,11 @@ av_muxer::av_muxer(const char *filename, const av_muxer_type muxer_type)
4040

4141
output_format_ = av_guess_format(muxer_type_name, nullptr, nullptr);
4242
if (output_format_ == nullptr)
43-
throw std::runtime_error(fmt::format("unable to guess output format: '{}'", muxer_type_name));
43+
throw std::runtime_error(fmt::format("unable to guess output format: '{}'",
44+
muxer_type_name));
4445

4546
/* allocate the output media context */
46-
if (int ret = avformat_alloc_output_context2(&format_context_, output_format_, nullptr, nullptr); ret < 0)
47+
if (const auto ret = avformat_alloc_output_context2(&format_context_, output_format_, nullptr, nullptr); ret < 0)
4748
throw std::runtime_error(
4849
fmt::format("av_muxer: unable to create avformat output context: {}",
4950
av_error_to_string(ret)));

0 commit comments

Comments
 (0)