summaryrefslogtreecommitdiff
path: root/libavdevice
diff options
context:
space:
mode:
Diffstat (limited to 'libavdevice')
-rw-r--r--libavdevice/openal-dec.c2
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 */