From 1d7a8f992f68fa4081a0c7e84ac18f8ae842fdda Mon Sep 17 00:00:00 2001
From: Rosen Penev <rosenp@gmail.com>
Date: Tue, 17 Aug 2021 20:00:02 -0700
Subject: [PATCH] clang-tidy: use auto

The type is duplicated otherwise

Found with modernize-use-auto

Signed-off-by: Rosen Penev <rosenp@gmail.com>
---
 src/lib/ffmpeg/Interleave.cxx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/ffmpeg/Interleave.cxx b/src/lib/ffmpeg/Interleave.cxx
index 51378b53b..4e901315f 100644
--- a/src/lib/ffmpeg/Interleave.cxx
+++ b/src/lib/ffmpeg/Interleave.cxx
@@ -37,7 +37,7 @@ InterleaveFrame(const AVFrame &frame, FfmpegBuffer &buffer)
 {
 	assert(frame.nb_samples > 0);
 
-	const AVSampleFormat format = AVSampleFormat(frame.format);
+	const auto format = AVSampleFormat(frame.format);
 	const unsigned channels = frame.channels;
 	const std::size_t n_frames = frame.nb_samples;