Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2012-11-26 15:59:44 +0400
committerPaul B Mahol <onemda@gmail.com>2012-11-26 15:59:44 +0400
commit5a3370816fc9549a742c7c458337bd9489804ac0 (patch)
treea1476eec676d705d8ac56487641b65fad6091784 /libavcodec/utils.c
parentc5607dfddcdf7974c6ed95a5b8e045d9d9d6a473 (diff)
av_get_audio_frame_duration: add ADPCM_AFC
Signed-off-by: Paul B Mahol <onemda@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 6a5c735160..32bda51eb4 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -2465,6 +2465,8 @@ int av_get_audio_frame_duration(AVCodecContext *avctx, int frame_bytes)
if (ch > 0) {
/* calc from frame_bytes and channels */
switch (id) {
+ case AV_CODEC_ID_ADPCM_AFC:
+ return frame_bytes / (9 * ch) * 16;
case AV_CODEC_ID_ADPCM_4XM:
case AV_CODEC_ID_ADPCM_IMA_ISS:
return (frame_bytes - 4 * ch) * 2 / ch;