mirror of
https://github.com/Almamu/linux-wallpaperengine.git
synced 2025-07-14 05:12:25 +08:00
Fix build with old ffmpeg
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
This commit is contained in:
parent
d2e82e72d8
commit
a8ef45265c
@ -246,8 +246,8 @@ void CAudioStream::initialize ()
|
||||
this->m_swrctx = swr_alloc_set_opts (
|
||||
nullptr,
|
||||
out_channel_layout,
|
||||
this->m_audioContext->getFormat (),
|
||||
this->m_audioContext->getSampleRate (),
|
||||
this->m_audioContext.getFormat (),
|
||||
this->m_audioContext.getSampleRate (),
|
||||
this->getContext ()->channel_layout,
|
||||
this->getContext ()->sample_fmt,
|
||||
this->getContext ()->sample_rate,
|
||||
@ -493,7 +493,7 @@ int CAudioStream::resampleAudio (
|
||||
int64_t out_channel_layout;
|
||||
|
||||
// set output audio channels based on the input audio channels
|
||||
switch (this->m_audioContext->getChannels ())
|
||||
switch (this->m_audioContext.getChannels ())
|
||||
{
|
||||
case 1: out_channel_layout = AV_CH_LAYOUT_MONO; break;
|
||||
case 2: out_channel_layout = AV_CH_LAYOUT_STEREO; break;
|
||||
|
Loading…
Reference in New Issue
Block a user