diff options
author | James Almer <jamrial@gmail.com> | 2013-05-03 18:07:13 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2013-05-10 16:10:51 -0300 |
commit | e7814ed839d16bf2fe1ce3d4954af89b0323c99d (patch) | |
tree | 74c125edc2ec7c9fd0e5e0b5b3f1c153ea25e821 /libavcodec/utils.c | |
parent | b2cf655d6e3d8446fd2ce0197aede831e941f0e8 (diff) | |
download | ffmpeg-e7814ed839d16bf2fe1ce3d4954af89b0323c99d.tar.gz |
ADPCM DTK decoder
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/utils.c')
-rw-r--r-- | libavcodec/utils.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c index 0d8306b54c..2040e6fc0d 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -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; |