[vlc-devel] [PATCH 7/8] opus encoder: move variable declaration

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


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

diff --git a/modules/codec/opus.c b/modules/codec/opus.c
index 00b1619..9430391 100644
--- a/modules/codec/opus.c
+++ b/modules/codec/opus.c
@@ -485,7 +485,6 @@ static unsigned fill_buffer(encoder_t *enc, unsigned src_start, block_t *src,
 static block_t *Encode(encoder_t *enc, block_t *buf)
 {
     encoder_sys_t *sys = enc->p_sys;
-    opus_int32 bytes_encoded;
 
     if (!buf)
         return NULL;
@@ -528,7 +527,7 @@ static block_t *Encode(encoder_t *enc, block_t *buf)
                     __MIN(buf->i_nb_samples, leftover_space));
         }
 
-        bytes_encoded = opus_multistream_encode_float(sys->enc, sys->buffer,
+        opus_int32 bytes_encoded = opus_multistream_encode_float(sys->enc, sys->buffer,
                 OPUS_FRAME_SIZE, out_block->p_buffer, out_block->i_buffer);
 
         out_block->i_length = (mtime_t) CLOCK_FREQ *
-- 
1.8.1.2




More information about the vlc-devel mailing list