From 5305e77586e976097c145b1660e371f5d27df3a8 Mon Sep 17 00:00:00 2001 From: Jonathan Thomas Date: Fri, 10 May 2024 18:07:48 -0500 Subject: [PATCH] Update FFmpegWriter.cpp attempt #3 on GitHub editor, build error fix --- src/FFmpegWriter.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/FFmpegWriter.cpp b/src/FFmpegWriter.cpp index a1d5534ab..649d14a3b 100644 --- a/src/FFmpegWriter.cpp +++ b/src/FFmpegWriter.cpp @@ -1061,7 +1061,7 @@ AVStream *FFmpegWriter::add_audio_stream() { // Set sample rate c->sample_rate = info.sample_rate; -auto channel_layout = info.channel_layout; +uint64_t channel_layout = info.channel_layout; #if HAVE_CH_LAYOUT // Set a valid number of channels (or throw error) AVChannelLayout ch_layout; @@ -1131,7 +1131,6 @@ const char* channel_layout_label; channel_layout_label = "c->ch_layout.u.mask"; #else nb_channels = c->channels; - channel_layout = c->channel_layout; nb_channels_label = "c->channels"; channel_layout_label = "c->channel_layout"; #endif