mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-23 18:11:11 +01:00
openal: convert to new channel layout API
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
68559225a2
commit
16970e1acb
1 changed files with 1 additions and 1 deletions
|
|
@ -159,7 +159,7 @@ static int read_header(AVFormatContext *ctx)
|
|||
par = st->codecpar;
|
||||
par->codec_type = AVMEDIA_TYPE_AUDIO;
|
||||
par->sample_rate = ad->sample_rate;
|
||||
par->channels = get_al_format_info(ad->sample_format)->channels;
|
||||
par->ch_layout.nb_channels = get_al_format_info(ad->sample_format)->channels;
|
||||
par->codec_id = get_al_format_info(ad->sample_format)->codec_id;
|
||||
|
||||
/* This is needed to read the audio data */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue