diff options
author | Anton Khirnov <anton@khirnov.net> | 2020-01-29 17:03:58 +0100 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2022-03-15 09:42:30 -0300 |
commit | 521cca1333852cc46682cc78d40ae51d10bc14a5 (patch) | |
tree | 46a62171b8a2e7bb2b18473f363b0c912ea1e6ac /libavformat/argo_cvg.c | |
parent | 057f237ca4e74249aa894bee42a4dfb0d3b394f6 (diff) | |
download | ffmpeg-521cca1333852cc46682cc78d40ae51d10bc14a5.tar.gz |
argo: convert to new channel layout API
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavformat/argo_cvg.c')
-rw-r--r-- | libavformat/argo_cvg.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libavformat/argo_cvg.c b/libavformat/argo_cvg.c index dfdf126c17..e0cd599920 100644 --- a/libavformat/argo_cvg.c +++ b/libavformat/argo_cvg.c @@ -182,8 +182,7 @@ static int argo_cvg_read_header(AVFormatContext *s) break; } - par->channels = 1; - par->channel_layout = AV_CH_LAYOUT_MONO; + par->ch_layout = (AVChannelLayout)AV_CHANNEL_LAYOUT_MONO; par->bits_per_coded_sample = 4; par->block_align = ARGO_CVG_BLOCK_ALIGN; @@ -275,7 +274,7 @@ static int argo_cvg_write_init(AVFormatContext *s) return AVERROR(EINVAL); } - if (par->channels != 1) { + if (par->ch_layout.nb_channels != 1) { av_log(s, AV_LOG_ERROR, "CVG files only support 1 channel\n"); return AVERROR(EINVAL); } |