mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
avcodec/adpcm_ima_ssi: support custom block size for encoding
Signed-off-by: Zane van Iperen <zane@zanevaniperen.com>
This commit is contained in:
parent
bd1c94bb68
commit
b5c2c9a1ce
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user