Skip to content

Commit

Permalink
Update FFmpegWriter.cpp
Browse files Browse the repository at this point in the history
attempt #3 on GitHub editor, build error fix
  • Loading branch information
jonoomph committed May 10, 2024
1 parent a188a4d commit 5305e77
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/FFmpegWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 5305e77

Please sign in to comment.