1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

av_get_audio_frame_duration: add G723_1

Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
Paul B Mahol 2012-10-30 21:20:38 +00:00
parent 7b378c2fb7
commit 7adc600219

View File

@ -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 */