[FFmpeg-cvslog] av_get_audio_frame_duration: add G723_1

Paul B Mahol git at videolan.org
Tue Oct 30 22:53:56 CET 2012


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Tue Oct 30 21:20:38 2012 +0000| [7adc6002199233017c9ef138911b39118db3aea0] | committer: Paul B Mahol

av_get_audio_frame_duration: add G723_1

Signed-off-by: Paul B Mahol <onemda at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=7adc6002199233017c9ef138911b39118db3aea0
---

 libavcodec/utils.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index 9f1abbe..2453a5d 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 */



More information about the ffmpeg-cvslog mailing list