diff options
author | James Almer <jamrial@gmail.com> | 2022-01-17 12:43:31 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2022-03-15 09:42:35 -0300 |
commit | 16970e1acb1375b484ad8f226a8401e950df4f9a (patch) | |
tree | 8815df5e0e5d66a7a6d5a26e2a2ea40af752ff7e /libavdevice/openal-dec.c | |
parent | 68559225a26251fcf8af9042f73b4a9dde7a4945 (diff) | |
download | ffmpeg-16970e1acb1375b484ad8f226a8401e950df4f9a.tar.gz |
openal: convert to new channel layout API
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavdevice/openal-dec.c')
-rw-r--r-- | libavdevice/openal-dec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavdevice/openal-dec.c b/libavdevice/openal-dec.c index 54f1203130..91a40ae020 100644 --- a/libavdevice/openal-dec.c +++ b/libavdevice/openal-dec.c @@ -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 */ |