clang-tidy: use auto

The type is duplicated otherwise

Found with modernize-use-auto

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev 2021-08-17 20:00:02 -07:00
parent bedcf1cce5
commit 1d7a8f992f

View File

@ -37,7 +37,7 @@ InterleaveFrame(const AVFrame &frame, FfmpegBuffer &buffer)
{ {
assert(frame.nb_samples > 0); assert(frame.nb_samples > 0);
const AVSampleFormat format = AVSampleFormat(frame.format); const auto format = AVSampleFormat(frame.format);
const unsigned channels = frame.channels; const unsigned channels = frame.channels;
const std::size_t n_frames = frame.nb_samples; const std::size_t n_frames = frame.nb_samples;