[FFmpeg-cvslog] avcodec/adpcm_yamaha: support custom block size for encoding
Zane van Iperen
git at videolan.org
Sat Oct 17 03:05:51 EEST 2020
ffmpeg | branch: master | Zane van Iperen <zane at zanevaniperen.com> | Wed Oct 14 22:43:03 2020 +1000| [ed1cfb8e318e052aa1b096c48a12c656b3df9521] | committer: Zane van Iperen
avcodec/adpcm_yamaha: 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=ed1cfb8e318e052aa1b096c48a12c656b3df9521
---
libavcodec/adpcmenc.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavcodec/adpcmenc.c b/libavcodec/adpcmenc.c
index f21edfc3e3..6c07142a65 100644
--- a/libavcodec/adpcmenc.c
+++ b/libavcodec/adpcmenc.c
@@ -142,8 +142,8 @@ static av_cold int adpcm_encode_init(AVCodecContext *avctx)
}
break;
case AV_CODEC_ID_ADPCM_YAMAHA:
- 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_SWF:
if (avctx->sample_rate != 11025 &&
More information about the ffmpeg-cvslog
mailing list