diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-09-30 22:46:33 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2023-02-04 00:22:08 +0100 |
| commit | 7cdfaa6ea81bbb61ba52c485bdbbfbc9e66b82e7 (patch) | |
| tree | a5599c1727ce6435718ed5933d217a25f3546d0f /src/lib/ffmpeg_decoder.cc | |
| parent | 27446bb97f50645ea57b07c120c4b8e87859e113 (diff) | |
Bump ffmpeg to 5.1.2 "Riemann"
Diffstat (limited to 'src/lib/ffmpeg_decoder.cc')
| -rw-r--r-- | src/lib/ffmpeg_decoder.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/ffmpeg_decoder.cc b/src/lib/ffmpeg_decoder.cc index 85f79b513..29f661fc0 100644 --- a/src/lib/ffmpeg_decoder.cc +++ b/src/lib/ffmpeg_decoder.cc @@ -260,7 +260,7 @@ deinterleave_audio(shared_ptr<FFmpegAudioStream> stream, AVFrame* frame) /* XXX: can't we use swr_convert() to do the format conversion? */ - int const channels = frame->channels; + int const channels = frame->ch_layout.nb_channels; int const frames = frame->nb_samples; int const total_samples = frames * channels; auto audio = make_shared<AudioBuffers>(channels, frames); |
