diff options
author | Anton Khirnov <anton@khirnov.net> | 2013-05-07 07:20:32 +0200 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2022-03-15 09:42:41 -0300 |
commit | 182866e9e4046b2edefb4126e781f2ecc91b9614 (patch) | |
tree | e5c522790b51f98fc9079776fb385ebac657e131 /libavcodec/g723_1_parser.c | |
parent | c21e1492e35599a52d15332db40731b11e59d3f6 (diff) | |
download | ffmpeg-182866e9e4046b2edefb4126e781f2ecc91b9614.tar.gz |
g723_1: convert to new channel layout API
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/g723_1_parser.c')
-rw-r--r-- | libavcodec/g723_1_parser.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/g723_1_parser.c b/libavcodec/g723_1_parser.c index b6b3fcb84b..2ed1a8ab19 100644 --- a/libavcodec/g723_1_parser.c +++ b/libavcodec/g723_1_parser.c @@ -37,7 +37,7 @@ static int g723_1_parse(AVCodecParserContext *s1, AVCodecContext *avctx, int next = END_NOT_FOUND; if (buf_size > 0) - next = frame_size[buf[0] & 3] * FFMAX(1, avctx->channels); + next = frame_size[buf[0] & 3] * FFMAX(1, avctx->ch_layout.nb_channels); if (ff_combine_frame(pc, next, &buf, &buf_size) < 0 || !buf_size) { *poutbuf = NULL; |