avcodec/adpcm: add support for 5.1 ADPCM MS
This commit is contained in:
parent
052d41377a
commit
f79873409b
2 changed files with 32 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue