diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-09-30 22:46:33 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-10-03 17:53:00 +0200 |
| commit | f8717d02c5d8e9a38db180900022ab6c7bf9b936 (patch) | |
| tree | d1790bd4921341445d8432db2ea75e009f940af0 /src/lib/ffmpeg_decoder.cc | |
| parent | 462d0883022ade6bbb51ca8a8c7a76a79788a30d (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 a5b36d04f..d4a5d6c19 100644 --- a/src/lib/ffmpeg_decoder.cc +++ b/src/lib/ffmpeg_decoder.cc @@ -227,7 +227,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); |
