mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-23 23:21:06 +01:00
libmodplug: convert to new channel layout API
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
d85b577f98
commit
eac3a902a4
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue