avcodec/adpcm: add support for 5.1 ADPCM MS

This commit is contained in:
Paul B Mahol 2019-07-25 16:11:27 +02:00 committed by Kieran Kunhya
parent 052d41377a
commit f79873409b
2 changed files with 32 additions and 1 deletions

View file

@ -590,6 +590,8 @@ break_loop:
} else if (st->codecpar->codec_id == AV_CODEC_ID_XMA1 ||
st->codecpar->codec_id == AV_CODEC_ID_XMA2) {
st->codecpar->block_align = 2048;
} else if (st->codecpar->codec_id == AV_CODEC_ID_ADPCM_MS && st->codecpar->channels > 2) {
st->codecpar->block_align *= st->codecpar->channels;
}
ff_metadata_conv_ctx(s, NULL, wav_metadata_conv);