aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2019-05-13 11:11:26 +0200
committerJames Almer <jamrial@gmail.com>2022-03-15 09:42:35 -0300
commitc46192de21b3de21cdb455d09fa0688501b0ac69 (patch)
tree1cec92c1f3af295e47866aba03144844a3c54bf4 /libavformat
parent8bd5b7043380de17beb4141597e1f1a70d0017e3 (diff)
downloadffmpeg-c46192de21b3de21cdb455d09fa0688501b0ac69.tar.gz
mtaf: convert to new channel layout API
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/mtaf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/mtaf.c b/libavformat/mtaf.c
index 5da82e713b..954ffaa8ba 100644
--- a/libavformat/mtaf.c
+++ b/libavformat/mtaf.c
@@ -54,9 +54,9 @@ static int mtaf_read_header(AVFormatContext *s)
st->codecpar->codec_type = AVMEDIA_TYPE_AUDIO;
st->codecpar->codec_id = AV_CODEC_ID_ADPCM_MTAF;
- st->codecpar->channels = 2 * stream_count;
+ st->codecpar->ch_layout.nb_channels = 2 * stream_count;
st->codecpar->sample_rate = 48000;
- st->codecpar->block_align = 0x110 * st->codecpar->channels / 2;
+ st->codecpar->block_align = 0x110 * st->codecpar->ch_layout.nb_channels / 2;
avpriv_set_pts_info(st, 64, 1, st->codecpar->sample_rate);
avio_seek(s->pb, 0x800, SEEK_SET);