git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7b378c2
)
av_get_audio_frame_duration: add G723_1
author
Paul B Mahol
<onemda@gmail.com>
Tue, 30 Oct 2012 21:20:38 +0000
(21:20 +0000)
committer
Paul B Mahol
<onemda@gmail.com>
Tue, 30 Oct 2012 21:53:38 +0000
(21:53 +0000)
Signed-off-by: Paul B Mahol <onemda@gmail.com>
libavcodec/utils.c
patch
|
blob
|
history
diff --git
a/libavcodec/utils.c
b/libavcodec/utils.c
index
9f1abbe
..
2453a5d
100644
(file)
--- 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 */