aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorZane van Iperen <zane@zanevaniperen.com>2020-10-14 22:41:43 +1000
committerZane van Iperen <zane@zanevaniperen.com>2020-10-17 09:36:05 +1000
commitb5c2c9a1ce4a4caf525f1a1836d9a572476eda8b (patch)
treecf6ad1b8388f5df2331ee0a13fa238a320936f4f /libavcodec
parentbd1c94bb6801e06b2fce9238df67bd1de4a90ace (diff)
downloadffmpeg-b5c2c9a1ce4a4caf525f1a1836d9a572476eda8b.tar.gz
avcodec/adpcm_ima_ssi: support custom block size for encoding
Signed-off-by: Zane van Iperen <zane@zanevaniperen.com>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/adpcmenc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/adpcmenc.c b/libavcodec/adpcmenc.c
index df5a7333cb..3d036e1f92 100644
--- a/libavcodec/adpcmenc.c
+++ b/libavcodec/adpcmenc.c
@@ -156,8 +156,8 @@ static av_cold int adpcm_encode_init(AVCodecContext *avctx)
avctx->frame_size = 512 * (avctx->sample_rate / 11025);
break;
case AV_CODEC_ID_ADPCM_IMA_SSI:
- 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;
break;
case AV_CODEC_ID_ADPCM_IMA_APM:
avctx->frame_size = BLKSIZE * 2 / avctx->channels;