From 16970e1acb1375b484ad8f226a8401e950df4f9a Mon Sep 17 00:00:00 2001 From: James Almer Date: Mon, 17 Jan 2022 12:43:31 -0300 Subject: openal: convert to new channel layout API Signed-off-by: James Almer --- libavdevice/openal-dec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavdevice') 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 */ -- cgit v1.2.1