Index: media/filters/ffmpeg_audio_decoder.cc |
diff --git a/media/filters/ffmpeg_audio_decoder.cc b/media/filters/ffmpeg_audio_decoder.cc |
index 6f3af9322d9deaae52eb78dcf72dc81116fa9554..13277e8a623802500f7a675249a5a78172f10dc3 100644 |
--- a/media/filters/ffmpeg_audio_decoder.cc |
+++ b/media/filters/ffmpeg_audio_decoder.cc |
@@ -34,12 +34,7 @@ static inline bool IsEndOfStream(int result, |
// Return the number of channels from the data in |frame|. |
static inline int DetermineChannels(AVFrame* frame) { |
-#if defined(CHROMIUM_NO_AVFRAME_CHANNELS) |
- // When use_system_ffmpeg==1, libav's AVFrame doesn't have channels field. |
- return av_get_channel_layout_nb_channels(frame->channel_layout); |
-#else |
return frame->channels; |
-#endif |
} |
// Called by FFmpeg's allocation routine to allocate a buffer. Uses |