[FFmpeg-cvslog] avcodec/adpcm_ima_ssi: support custom block size for encoding

Zane van Iperen git at videolan.org
Sat Oct 17 03:05:44 EEST 2020


ffmpeg | branch: master | Zane van Iperen <zane at zanevaniperen.com> | Wed Oct 14 22:41:43 2020 +1000| [b5c2c9a1ce4a4caf525f1a1836d9a572476eda8b] | committer: Zane van Iperen

avcodec/adpcm_ima_ssi: support custom block size for encoding

Signed-off-by: Zane van Iperen <zane at zanevaniperen.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b5c2c9a1ce4a4caf525f1a1836d9a572476eda8b
---

 libavcodec/adpcmenc.c | 4 ++--
 1 file 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;



More information about the ffmpeg-cvslog mailing list