aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2021-08-23 23:34:21 -0300
committerJames Almer <jamrial@gmail.com>2022-03-15 09:42:34 -0300
commit3654db79f4b912c1a4c3d16700c341628e40de3c (patch)
treee5744de9d8de52bcfdabc4c974f17e6f2cdb699e /libavformat
parent847e6393ac4cf07731bf1ae2b089ebeaccf9a53d (diff)
downloadffmpeg-3654db79f4b912c1a4c3d16700c341628e40de3c.tar.gz
moflex: convert to new channel layout API
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/moflex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/moflex.c b/libavformat/moflex.c
index 1d342417f7..2ea7c1f994 100644
--- a/libavformat/moflex.c
+++ b/libavformat/moflex.c
@@ -233,7 +233,7 @@ static int moflex_read_sync(AVFormatContext *s)
st->codecpar->width = width;
st->codecpar->height = height;
st->codecpar->sample_rate= sample_rate;
- st->codecpar->channels = channels;
+ st->codecpar->ch_layout.nb_channels = channels;
st->priv_data = av_packet_alloc();
if (!st->priv_data)
return AVERROR(ENOMEM);