[vlc-devel] [PATCH 3/8] opus: explicit that 960 samples is 20ms at 48kHz

Rafaël Carré funman at videolan.org
Sat Sep 21 16:54:30 CEST 2013


---
 modules/codec/opus.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/codec/opus.c b/modules/codec/opus.c
index 7b2a788..7d29740 100644
--- a/modules/codec/opus.c
+++ b/modules/codec/opus.c
@@ -452,7 +452,7 @@ static void CloseDecoder( vlc_object_t *p_this )
    gain, shorter does have a compression loss, and doesn't matter so much in
    Ogg, unless you really need low latency, which would also require muxing one
    packet per page. */
-static const unsigned OPUS_FRAME_SIZE = 960;
+static const unsigned OPUS_FRAME_SIZE = 960; /* 48000 * 20 / 1000 */
 
 struct encoder_sys_t
 {
-- 
1.8.1.2




More information about the vlc-devel mailing list