From dde9c3f12e7ba97e7cd37a80f2983da4d1b3b249 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Fri, 2 Aug 2024 00:27:57 +0200 Subject: Variable shadow fix --- src/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 48c6223..43e68a4 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2899,7 +2899,7 @@ int main(int argc, char **argv) { const double audio_startup_time_seconds = force_no_audio_offset ? 0 : audio_codec_get_desired_delay(audio_codec, fps);// * ((double)audio_codec_context->frame_size / 1024.0); const double num_audio_frames_shift = audio_startup_time_seconds / timeout_sec; - std::vector audio_devices; + std::vector audio_track_audio_devices; for(size_t i = 0; i < merged_audio_inputs.audio_inputs.size(); ++i) { auto &audio_input = merged_audio_inputs.audio_inputs[i]; AVFilterContext *src_ctx = nullptr; @@ -2923,13 +2923,13 @@ int main(int argc, char **argv) { audio_device.frame = create_audio_frame(audio_codec_context); audio_device.frame->pts = -audio_codec_context->frame_size * num_audio_frames_shift; - audio_devices.push_back(std::move(audio_device)); + audio_track_audio_devices.push_back(std::move(audio_device)); } AudioTrack audio_track; audio_track.codec_context = audio_codec_context; audio_track.stream = audio_stream; - audio_track.audio_devices = std::move(audio_devices); + audio_track.audio_devices = std::move(audio_track_audio_devices); audio_track.graph = graph; audio_track.sink = sink; audio_track.stream_index = audio_stream_index; -- cgit v1.2.3