diff options
author | Martin Storsjö <martin@martin.st> | 2012-06-16 00:42:13 +0300 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2012-06-18 22:00:35 +0300 |
commit | 3641b0489ce8517ae4ce75ea43c1445b6d1ad2f2 (patch) | |
tree | c27059ecbf8de8dccab3901bdbe93cfb42b44913 /libavcodec/utils.c | |
parent | 46743a859ceb6b6bf4f0b1cbe26e5b311ed9eef4 (diff) | |
download | ffmpeg-3641b0489ce8517ae4ce75ea43c1445b6d1ad2f2.tar.gz |
Add support for iLBC decoding/encoding via the external library libilbc
The library is 3-clause BSD licensed.
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavcodec/utils.c')
-rw-r--r-- | libavcodec/utils.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c index d2ee9f893b..514a1f5569 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -1832,6 +1832,11 @@ int av_get_audio_frame_duration(AVCodecContext *avctx, int frame_bytes) case 29: return 288; case 37: return 480; } + } else if (id == CODEC_ID_ILBC) { + switch (ba) { + case 38: return 160; + case 50: return 240; + } } } |