diff --git a/xbmc/cores/VideoPlayer/DVDCodecs/Audio/DVDAudioCodecFFmpeg.cpp b/xbmc/cores/VideoPlayer/DVDCodecs/Audio/DVDAudioCodecFFmpeg.cpp index a21894e..0820d0c 100644 --- a/xbmc/cores/VideoPlayer/DVDCodecs/Audio/DVDAudioCodecFFmpeg.cpp +++ b/xbmc/cores/VideoPlayer/DVDCodecs/Audio/DVDAudioCodecFFmpeg.cpp @@ -218,11 +218,11 @@ int CDVDAudioCodecFFmpeg::GetData(uint8_t** dst) { if(m_gotFrame) { - int planes = av_sample_fmt_is_planar(m_pCodecContext->sample_fmt) ? m_pFrame1->channels : 1; + int planes = av_sample_fmt_is_planar(m_pCodecContext->sample_fmt) ? av_frame_get_channels(m_pFrame1) : 1; for (int i=0; iextended_data[i]; m_gotFrame = 0; - return m_pFrame1->nb_samples * m_pFrame1->channels * av_get_bytes_per_sample(m_pCodecContext->sample_fmt); + return m_pFrame1->nb_samples * av_frame_get_channels(m_pFrame1) * av_get_bytes_per_sample(m_pCodecContext->sample_fmt); } return 0;