Commit 7adc6002 authored by Paul B Mahol's avatar Paul B Mahol

av_get_audio_frame_duration: add G723_1

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent 7b378c2f
...@@ -2438,6 +2438,8 @@ int av_get_audio_frame_duration(AVCodecContext *avctx, int frame_bytes) ...@@ -2438,6 +2438,8 @@ int av_get_audio_frame_duration(AVCodecContext *avctx, int frame_bytes)
return 256 * (frame_bytes / 64); return 256 * (frame_bytes / 64);
if (id == AV_CODEC_ID_RA_144) if (id == AV_CODEC_ID_RA_144)
return 160 * (frame_bytes / 20); return 160 * (frame_bytes / 20);
if (id == AV_CODEC_ID_G723_1)
return 240 * (frame_bytes / 24);
if (bps > 0) { if (bps > 0) {
/* calc from frame_bytes and bits_per_coded_sample */ /* calc from frame_bytes and bits_per_coded_sample */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment