summaryrefslogtreecommitdiff
path: root/libavformat/oggparsecelt.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavformat/oggparsecelt.c')
-rw-r--r--libavformat/oggparsecelt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/oggparsecelt.c b/libavformat/oggparsecelt.c
index f7a88af616..e528fd1f41 100644
--- a/libavformat/oggparsecelt.c
+++ b/libavformat/oggparsecelt.c
@@ -64,7 +64,7 @@ static int celt_header(AVFormatContext *s, int idx)
st->codecpar->codec_type = AVMEDIA_TYPE_AUDIO;
st->codecpar->codec_id = AV_CODEC_ID_CELT;
st->codecpar->sample_rate = sample_rate;
- st->codecpar->channels = nb_channels;
+ st->codecpar->ch_layout.nb_channels = nb_channels;
if (sample_rate)
avpriv_set_pts_info(st, 64, 1, sample_rate);