[vlc-devel] [PATCH 6/8] opus encoder: rename 'end' variable
Rafaël Carré
funman at videolan.org
Sat Sep 21 16:54:33 CEST 2013
---
modules/codec/opus.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/modules/codec/opus.c b/modules/codec/opus.c
index 2f50b77..00b1619 100644
--- a/modules/codec/opus.c
+++ b/modules/codec/opus.c
@@ -471,12 +471,12 @@ static unsigned fill_buffer(encoder_t *enc, unsigned src_start, block_t *src,
const unsigned channels = enc->fmt_out.audio.i_channels;
const float *src_buf = ((const float *) src->p_buffer) + src_start;
float *dest_buf = p_sys->buffer + (p_sys->i_nb_samples * channels);
- const unsigned end = samples * channels;
+ const unsigned len = samples * channels;
- memcpy(dest_buf, src_buf, end * sizeof(float));
+ memcpy(dest_buf, src_buf, len * sizeof(float));
p_sys->i_nb_samples += samples;
- src_start += end;
+ src_start += len;
src->i_nb_samples -= samples;
return src_start;
--
1.8.1.2
More information about the vlc-devel
mailing list