diff options
author | James Almer <jamrial@gmail.com> | 2022-01-17 13:28:32 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2022-03-15 09:42:34 -0300 |
commit | eac3a902a4472270556c9fbd917ca8669603715c (patch) | |
tree | 1911665960ddfc78ee0e616dd4df36970d56a72a /libavformat/libmodplug.c | |
parent | d85b577f98632393e0645059720b4ff519389a01 (diff) | |
download | ffmpeg-eac3a902a4472270556c9fbd917ca8669603715c.tar.gz |
libmodplug: convert to new channel layout API
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavformat/libmodplug.c')
-rw-r--r-- | libavformat/libmodplug.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/libmodplug.c b/libavformat/libmodplug.c index 8f8d0e9740..0cae13bd2e 100644 --- a/libavformat/libmodplug.c +++ b/libavformat/libmodplug.c @@ -238,7 +238,7 @@ static int modplug_read_header(AVFormatContext *s) st->duration = ModPlug_GetLength(modplug->f); st->codecpar->codec_type = AVMEDIA_TYPE_AUDIO; st->codecpar->codec_id = AV_CODEC_ID_PCM_S16LE; - st->codecpar->channels = settings.mChannels; + st->codecpar->ch_layout.nb_channels = settings.mChannels; st->codecpar->sample_rate = settings.mFrequency; // timebase = 1/1000, 2ch 16bits 44.1kHz-> 2*2*44100 |