[FFmpeg-cvslog] av_get_audio_frame_duration: add ADPCM_AFC
Paul B Mahol
git at videolan.org
Mon Nov 26 13:04:58 CET 2012
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Mon Nov 26 11:59:44 2012 +0000| [5a3370816fc9549a742c7c458337bd9489804ac0] | committer: Paul B Mahol
av_get_audio_frame_duration: add ADPCM_AFC
Signed-off-by: Paul B Mahol <onemda at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5a3370816fc9549a742c7c458337bd9489804ac0
---
libavcodec/utils.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index 6a5c735..32bda51 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;
More information about the ffmpeg-cvslog
mailing list