diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-09-30 22:46:33 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2023-03-08 17:17:15 +0100 |
| commit | 67601483f54a14e0db9ffeadb430348cf51f0457 (patch) | |
| tree | b74b8498415fa9408f5632262d6fa0a261a18564 /src/lib/ffmpeg_decoder.cc | |
| parent | b3ab068b2106c5ee53e283ee69588f9e4a07ca3d (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); |
