diff mbox series

[FFmpeg-devel,039/281] bmv: convert to new channel layout API

Message ID 20220113015101.4-40-jamrial@gmail.com
State Accepted
Commit 96b64bd94806aa43dd0993acd0d5b7f5f7d29eb2
Headers show
Series New channel layout API | expand

Commit Message

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

Patch

diff --git a/libavformat/bmv.c b/libavformat/bmv.c
index 873ecb027c..e1f667076e 100644
--- a/libavformat/bmv.c
+++ b/libavformat/bmv.c
@@ -58,8 +58,7 @@  static int bmv_read_header(AVFormatContext *s)
         return AVERROR(ENOMEM);
     ast->codecpar->codec_type      = AVMEDIA_TYPE_AUDIO;
     ast->codecpar->codec_id        = AV_CODEC_ID_BMV_AUDIO;
-    ast->codecpar->channels        = 2;
-    ast->codecpar->channel_layout  = AV_CH_LAYOUT_STEREO;
+    ast->codecpar->ch_layout       = (AVChannelLayout)AV_CHANNEL_LAYOUT_STEREO;
     ast->codecpar->sample_rate     = 22050;
     avpriv_set_pts_info(ast, 16, 1, 22050);