summaryrefslogtreecommitdiff
path: root/dom/media/platforms/ffmpeg/FFmpegAudioDecoder.cpp
diff options
context:
space:
mode:
authorMatt A. Tobin <email@mattatobin.com>2021-09-23 22:46:30 -0400
committerMoonchild <moonchild@palemoon.org>2022-04-01 14:31:39 +0200
commit3635039d2be6264673f3b89b8df390f03159fcaa (patch)
tree95d05b42c8f0af58e2608bbe53fe1ab800a88a94 /dom/media/platforms/ffmpeg/FFmpegAudioDecoder.cpp
parent711e049432900fcfb421e6cceb6ed311519fd6c1 (diff)
downloaduxp-3635039d2be6264673f3b89b8df390f03159fcaa.tar.gz
Issue #1806 - Part 2: Adjust the platform for lib changes
Diffstat (limited to 'dom/media/platforms/ffmpeg/FFmpegAudioDecoder.cpp')
-rw-r--r--dom/media/platforms/ffmpeg/FFmpegAudioDecoder.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/dom/media/platforms/ffmpeg/FFmpegAudioDecoder.cpp b/dom/media/platforms/ffmpeg/FFmpegAudioDecoder.cpp
index f867ec4942..7e91987251 100644
--- a/dom/media/platforms/ffmpeg/FFmpegAudioDecoder.cpp
+++ b/dom/media/platforms/ffmpeg/FFmpegAudioDecoder.cpp
@@ -117,6 +117,8 @@ CopyAndPackAudio(AVFrame* aFrame, uint32_t aNumChannels, uint32_t aNumAFrames)
return audio;
}
+typedef AudioConfig::ChannelLayout ChannelLayout;
+
MediaResult
FFmpegAudioDecoder<LIBAV_VER>::DoDecode(MediaRawData* aSample)
{
@@ -188,7 +190,8 @@ FFmpegAudioDecoder<LIBAV_VER>::DoDecode(MediaRawData* aSample)
mFrame->nb_samples,
Move(audio),
numChannels,
- samplingRate);
+ samplingRate,
+ mCodecContext->channel_layout);
mCallback->Output(data);
pts += duration;
if (!pts.IsValid()) {