summaryrefslogtreecommitdiff
path: root/libavformat/mxg.c
diff options
context:
space:
mode:
authorVittorio Giovara <vittorio.giovara@gmail.com>2017-03-31 17:51:16 +0200
committerJames Almer <jamrial@gmail.com>2022-03-15 09:42:35 -0300
commit29e61ef5d68b297dcf79244ac746ad8b650e34eb (patch)
treef3efc0fb31519fd60c0cda59d07aef6eb004959a /libavformat/mxg.c
parentd219681a52c64a27c60b1395de9f3c01ba70d43b (diff)
mxg: 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/mxg.c')
-rw-r--r--libavformat/mxg.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavformat/mxg.c b/libavformat/mxg.c
index d5c1d666fc..b160ccb9f9 100644
--- a/libavformat/mxg.c
+++ b/libavformat/mxg.c
@@ -57,8 +57,7 @@ static int mxg_read_header(AVFormatContext *s)
return AVERROR(ENOMEM);
audio_st->codecpar->codec_type = AVMEDIA_TYPE_AUDIO;
audio_st->codecpar->codec_id = AV_CODEC_ID_PCM_ALAW;
- audio_st->codecpar->channels = 1;
- audio_st->codecpar->channel_layout = AV_CH_LAYOUT_MONO;
+ audio_st->codecpar->ch_layout = (AVChannelLayout)AV_CHANNEL_LAYOUT_MONO;
audio_st->codecpar->sample_rate = 8000;
audio_st->codecpar->bits_per_coded_sample = 8;
audio_st->codecpar->block_align = 1;