aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/utils.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2012-10-30 21:20:38 +0000
committerPaul B Mahol <onemda@gmail.com>2012-10-30 21:53:38 +0000
commit7adc6002199233017c9ef138911b39118db3aea0 (patch)
tree5837c07a1e621c87237c3db7a25c402c6da17d40 /libavcodec/utils.c
parent7b378c2fb76387cb91793ed18f546a3a19bdd615 (diff)
downloadffmpeg-7adc6002199233017c9ef138911b39118db3aea0.tar.gz
av_get_audio_frame_duration: add G723_1
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 9f1abbef7d..2453a5d1d9 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -2438,6 +2438,8 @@ int av_get_audio_frame_duration(AVCodecContext *avctx, int frame_bytes)
return 256 * (frame_bytes / 64);
if (id == AV_CODEC_ID_RA_144)
return 160 * (frame_bytes / 20);
+ if (id == AV_CODEC_ID_G723_1)
+ return 240 * (frame_bytes / 24);
if (bps > 0) {
/* calc from frame_bytes and bits_per_coded_sample */