Index: media/filters/ffmpeg_audio_decoder.cc |
diff --git a/media/filters/ffmpeg_audio_decoder.cc b/media/filters/ffmpeg_audio_decoder.cc |
index 206f971a19a301bd8b543974581bbb8673f7ef76..2ad55cdbba94d4344e4b2ce7ace0e9da91467b7c 100644 |
--- a/media/filters/ffmpeg_audio_decoder.cc |
+++ b/media/filters/ffmpeg_audio_decoder.cc |
@@ -58,7 +58,8 @@ static int GetAudioBuffer(struct AVCodecContext* s, AVFrame* frame, int flags) { |
// data, use the values supplied by FFmpeg (ignoring the current settings). |
// FFmpegDecode() gets to determine if the buffer is useable or not. |
AVSampleFormat format = static_cast<AVSampleFormat>(frame->format); |
- SampleFormat sample_format = AVSampleFormatToSampleFormat(format); |
+ SampleFormat sample_format = |
+ AVSampleFormatToSampleFormat(format, s->codec_id); |
int channels = DetermineChannels(frame); |
if (channels <= 0 || channels >= limits::kMaxChannels) { |
DLOG(ERROR) << "Requested number of channels (" << channels |