diff options
author | Carl Eugen Hoyos <ceffmpeg@gmail.com> | 2018-12-14 17:16:56 +0300 |
---|---|---|
committer | Carl Eugen Hoyos <ceffmpeg@gmail.com> | 2018-12-15 02:32:31 +0300 |
commit | 641d52152f6a6825f2b77b1b4c4cd6621a8fa236 (patch) | |
tree | b34dfdcb5ea00696a5b790a9800171cabab0a95c /libavcodec/g729_parser.c | |
parent | 7aaab127bebb33003105a620736d6cae8c45a6e5 (diff) |
lavc/g729dec: Support stereo streams.
Fixes ticket #4553.
Diffstat (limited to 'libavcodec/g729_parser.c')
-rw-r--r-- | libavcodec/g729_parser.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/g729_parser.c b/libavcodec/g729_parser.c index d13c990807..9982dbfffc 100644 --- a/libavcodec/g729_parser.c +++ b/libavcodec/g729_parser.c @@ -48,6 +48,7 @@ static int g729_parse(AVCodecParserContext *s1, AVCodecContext *avctx, av_assert1(avctx->codec_id == AV_CODEC_ID_G729); /* FIXME: replace this heuristic block_size with more precise estimate */ s->block_size = (avctx->bit_rate < 8000) ? G729D_6K4_BLOCK_SIZE : G729_8K_BLOCK_SIZE; + s->block_size *= avctx->channels; s->duration = avctx->frame_size; } |