You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
avcodec/adpcm_yamaha: support custom block size for encoding
Signed-off-by: Zane van Iperen <zane@zanevaniperen.com>
This commit is contained in:
@@ -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 &&
|
||||
|
Reference in New Issue
Block a user