diff options
author | Anton Khirnov <anton@khirnov.net> | 2019-05-13 11:11:26 +0200 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2022-03-15 09:42:34 -0300 |
commit | f4602e9ba6e38f3b680b5bd93c25057fae4c9374 (patch) | |
tree | 8f236243427a7a192954bc04e8f4c77ff22d621b /libavformat | |
parent | eb2634339b8c89df8850e23e2c4bdbe24ee68614 (diff) |
mpeg: convert to new channel layout API
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/mpeg.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavformat/mpeg.c b/libavformat/mpeg.c index ca15d9f241..34c1b74a4e 100644 --- a/libavformat/mpeg.c +++ b/libavformat/mpeg.c @@ -621,8 +621,7 @@ skip: st->codecpar->codec_id = codec_id; if ( st->codecpar->codec_id == AV_CODEC_ID_PCM_MULAW || st->codecpar->codec_id == AV_CODEC_ID_PCM_ALAW) { - st->codecpar->channels = 1; - st->codecpar->channel_layout = AV_CH_LAYOUT_MONO; + st->codecpar->ch_layout = (AVChannelLayout)AV_CHANNEL_LAYOUT_MONO; st->codecpar->sample_rate = 8000; } sti->request_probe = request_probe; |