X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fg729_parser.c;h=9982dbfffccf3cf81bb26073e3bda9bc7c7002e0;hb=44085b9951b06df1cab4105dcda004213988d84f;hp=d13c990807af632e29737758ec9e8c394d6af806;hpb=4069096dd535ee99175c2a29c1a1f59c3fc110c1;p=ffmpeg diff --git a/libavcodec/g729_parser.c b/libavcodec/g729_parser.c index d13c990807a..9982dbfffcc 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; }