summaryrefslogtreecommitdiff
path: root/libavcodec/utils.c
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2013-05-10 16:53:50 -0300
committerJames Almer <jamrial@gmail.com>2013-05-10 16:53:50 -0300
commit67fad0d221458d43edb9037c30171d0adb1d609a (patch)
treefe6ccd93afeaebf20af25b376c4040f07b8055b0 /libavcodec/utils.c
parente5e86db178b76026981f97889365ca9701705f2b (diff)
ADPCM IMA Radical decoder
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/utils.c')
-rw-r--r--libavcodec/utils.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index 2040e6fc0d..d647a23289 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -2883,6 +2883,8 @@ int av_get_audio_frame_duration(AVCodecContext *avctx, int frame_bytes)
return blocks * (((ba - 16) * 2 / 3 * 4) / ch);
case AV_CODEC_ID_ADPCM_IMA_DK4:
return blocks * (1 + (ba - 4 * ch) * 2 / ch);
+ case AV_CODEC_ID_ADPCM_IMA_RAD:
+ return blocks * ((ba - 4 * ch) * 2 / ch);
case AV_CODEC_ID_ADPCM_MS:
return blocks * (2 + (ba - 7 * ch) * 2 / ch);
}