aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/amvenc.c
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2021-08-23 23:03:15 -0300
committerJames Almer <jamrial@gmail.com>2022-03-15 09:42:30 -0300
commit39cc2d05af96a3bbe3f2035c309d16129b5e495c (patch)
tree926a74bc335e8b841e9bbf934c3ea89f625424ef /libavformat/amvenc.c
parent2c01257819beb7fb6ac12d57a2ba3ccbfaf0be49 (diff)
downloadffmpeg-39cc2d05af96a3bbe3f2035c309d16129b5e495c.tar.gz
amv: convert to new channel layout API
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavformat/amvenc.c')
-rw-r--r--libavformat/amvenc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/amvenc.c b/libavformat/amvenc.c
index fece2f49b1..28d4879b19 100644
--- a/libavformat/amvenc.c
+++ b/libavformat/amvenc.c
@@ -244,9 +244,9 @@ static void amv_write_alist(AVFormatContext *s, AVCodecParameters *par)
/* Bodge an (incorrect) WAVEFORMATEX (+2 pad bytes) */
tag_str = ff_start_tag(pb, "strf");
AV_WL16(buf + 0, 1);
- AV_WL16(buf + 2, par->channels);
+ AV_WL16(buf + 2, par->ch_layout.nb_channels);
AV_WL32(buf + 4, par->sample_rate);
- AV_WL32(buf + 8, par->sample_rate * par->channels * 2);
+ AV_WL32(buf + 8, par->sample_rate * par->ch_layout.nb_channels * 2);
AV_WL16(buf + 12, 2);
AV_WL16(buf + 14, 16);
AV_WL16(buf + 16, 0);