Message ID | 20201014130915.25948-4-zane@zanevaniperen.com |
---|---|
State | Accepted |
Commit | eb75a80dc8cb2578941608d9738cff6fafc4b4fa |
Headers | show |
Series | [FFmpeg-devel,1/7] avcodec/adpcmenc: add "block_size" option | expand |
Context | Check | Description |
---|---|---|
andriy/x86_make | success | Make finished |
andriy/x86_make_fate | success | Make fate finished |
diff --git a/libavcodec/adpcmenc.c b/libavcodec/adpcmenc.c index 2907ac8d77..d234d3dbf2 100644 --- a/libavcodec/adpcmenc.c +++ b/libavcodec/adpcmenc.c @@ -160,8 +160,8 @@ static av_cold int adpcm_encode_init(AVCodecContext *avctx) avctx->block_align = s->block_size; break; case AV_CODEC_ID_ADPCM_IMA_APM: - avctx->frame_size = BLKSIZE * 2 / avctx->channels; - avctx->block_align = BLKSIZE; + avctx->frame_size = s->block_size * 2 / avctx->channels; + avctx->block_align = s->block_size; if (!(avctx->extradata = av_mallocz(28 + AV_INPUT_BUFFER_PADDING_SIZE))) return AVERROR(ENOMEM);
Signed-off-by: Zane van Iperen <zane@zanevaniperen.com> --- libavcodec/adpcmenc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)