aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/g723_1_parser.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2013-05-07 07:20:32 +0200
committerJames Almer <jamrial@gmail.com>2022-03-15 09:42:41 -0300
commit182866e9e4046b2edefb4126e781f2ecc91b9614 (patch)
treee5c522790b51f98fc9079776fb385ebac657e131 /libavcodec/g723_1_parser.c
parentc21e1492e35599a52d15332db40731b11e59d3f6 (diff)
downloadffmpeg-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.c2
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;