diff options
author | Vittorio Giovara <vittorio.giovara@gmail.com> | 2017-03-31 13:43:12 +0200 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2022-03-15 09:42:31 -0300 |
commit | e4fc86a45877faccff8ee73be76a20a720a85de7 (patch) | |
tree | 2b9f3195a20f961e8e4576d0100fb15998dce388 /libavformat/dauddec.c | |
parent | 3b3b8eb8ef5a92263e17f504009d335b7d2b6361 (diff) |
dash: convert to new channel layout API
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavformat/dauddec.c')
-rw-r--r-- | libavformat/dauddec.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavformat/dauddec.c b/libavformat/dauddec.c index 6a5962c238..dbbd39a3b4 100644 --- a/libavformat/dauddec.c +++ b/libavformat/dauddec.c @@ -29,8 +29,7 @@ static int daud_header(AVFormatContext *s) { st->codecpar->codec_type = AVMEDIA_TYPE_AUDIO; st->codecpar->codec_id = AV_CODEC_ID_PCM_S24DAUD; st->codecpar->codec_tag = MKTAG('d', 'a', 'u', 'd'); - st->codecpar->channels = 6; - st->codecpar->channel_layout = AV_CH_LAYOUT_5POINT1; + st->codecpar->ch_layout = (AVChannelLayout)AV_CHANNEL_LAYOUT_5POINT1; st->codecpar->sample_rate = 96000; st->codecpar->bit_rate = 3 * 6 * 96000 * 8; st->codecpar->block_align = 3 * 6; |