diff options
author | Paul B Mahol <onemda@gmail.com> | 2012-11-26 11:59:44 +0000 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2012-11-26 11:59:44 +0000 |
commit | 5a3370816fc9549a742c7c458337bd9489804ac0 (patch) | |
tree | a1476eec676d705d8ac56487641b65fad6091784 /libavcodec | |
parent | c5607dfddcdf7974c6ed95a5b8e045d9d9d6a473 (diff) | |
download | ffmpeg-5a3370816fc9549a742c7c458337bd9489804ac0.tar.gz |
av_get_audio_frame_duration: add ADPCM_AFC
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavcodec')
-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 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; |