aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVittorio Giovara <vittorio.giovara@gmail.com>2017-03-31 13:39:05 +0200
committerJames Almer <jamrial@gmail.com>2022-03-15 09:42:31 -0300
commit96b64bd94806aa43dd0993acd0d5b7f5f7d29eb2 (patch)
treea410632a147f4d2da598c9c42f658ec7db8af220
parentfc5e819f6562f743fe9c7d6305dbb16c093628af (diff)
downloadffmpeg-96b64bd94806aa43dd0993acd0d5b7f5f7d29eb2.tar.gz
bmv: convert to new channel layout API
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
-rw-r--r--libavformat/bmv.c3
1 files changed, 1 insertions, 2 deletions
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);