ADPCM DTK decoder

Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
James Almer
2013-05-03 18:07:13 -03:00
parent b2cf655d6e
commit e7814ed839
10 changed files with 71 additions and 3 deletions

View File

@@ -2835,6 +2835,8 @@ int av_get_audio_frame_duration(AVCodecContext *avctx, int frame_bytes)
switch (id) {
case AV_CODEC_ID_ADPCM_AFC:
return frame_bytes / (9 * ch) * 16;
case AV_CODEC_ID_ADPCM_DTK:
return frame_bytes / (16 * ch) * 28;
case AV_CODEC_ID_ADPCM_4XM:
case AV_CODEC_ID_ADPCM_IMA_ISS:
return (frame_bytes - 4 * ch) * 2 / ch;