diff options
author | Anton Khirnov <anton@khirnov.net> | 2019-06-04 17:50:05 +0200 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2022-03-15 09:42:43 -0300 |
commit | 53bf0ed544de33656bd64ab2a5167799c873d60c (patch) | |
tree | 2830fac71db282a058d0da2ef336334144446adb | |
parent | 429327075a2240113e678cdd23b8d0a23b3ebca2 (diff) | |
download | ffmpeg-53bf0ed544de33656bd64ab2a5167799c873d60c.tar.gz |
libvo-amrwbenc: convert to new channel layout API
Signed-off-by: James Almer <jamrial@gmail.com>
-rw-r--r-- | libavcodec/libvo-amrwbenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/libvo-amrwbenc.c b/libavcodec/libvo-amrwbenc.c index 9c7c91b617..4beede0863 100644 --- a/libavcodec/libvo-amrwbenc.c +++ b/libavcodec/libvo-amrwbenc.c @@ -87,7 +87,7 @@ static av_cold int amr_wb_encode_init(AVCodecContext *avctx) return AVERROR(ENOSYS); } - if (avctx->channels != 1) { + if (avctx->ch_layout.nb_channels != 1) { av_log(avctx, AV_LOG_ERROR, "Only mono supported\n"); return AVERROR(ENOSYS); } |