diff mbox series

[FFmpeg-devel,110/281] mxg: convert to new channel layout API

Message ID 20220113015612.448-22-jamrial@gmail.com
State Accepted
Commit 29e61ef5d68b297dcf79244ac746ad8b650e34eb
Headers show
Series New channel layout API | expand

Checks

Context Check Description
andriy/make_x86 success Make finished
andriy/make_fate_x86 fail Make fate failed
andriy/make_ppc success Make finished
andriy/make_fate_ppc fail Make fate failed

Commit Message

James Almer Jan. 13, 2022, 1:56 a.m. UTC
From: Vittorio Giovara <vittorio.giovara@gmail.com>

Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
---
 libavformat/mxg.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
diff mbox series

Patch

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;