diff mbox series

[FFmpeg-devel,175/281] yop: convert to new channel layout API

Message ID 20220113020026.590-27-jamrial@gmail.com
State New
Headers show
Series New channel layout API
Related show

Commit Message

James Almer Jan. 13, 2022, 2 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/yop.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/libavformat/yop.c b/libavformat/yop.c
index f65e4f8b16..b0aa0bb64b 100644
--- a/libavformat/yop.c
+++ b/libavformat/yop.c
@@ -72,8 +72,7 @@  static int yop_read_header(AVFormatContext *s)
     audio_par                 = audio_stream->codecpar;
     audio_par->codec_type     = AVMEDIA_TYPE_AUDIO;
     audio_par->codec_id       = AV_CODEC_ID_ADPCM_IMA_APC;
-    audio_par->channels       = 1;
-    audio_par->channel_layout = AV_CH_LAYOUT_MONO;
+    audio_par->ch_layout      = (AVChannelLayout)AV_CHANNEL_LAYOUT_MONO;
     audio_par->sample_rate    = 22050;
 
     // Video