[vlc-commits] speex: avoid unsigned->signed->unsigned conversion (CID #1048968)

Rémi Denis-Courmont git at videolan.org
Wed Oct 21 18:46:57 CEST 2015


vlc/vlc-2.2 | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Aug 23 10:33:50 2015 +0300| [04928e30804592dc68f2ad58082a1e3288be4415] | committer: Jean-Baptiste Kempf

speex: avoid unsigned->signed->unsigned conversion (CID #1048968)

(cherry picked from commit cb267c8052444a1f14e903203ad7da9e5b8df1d9)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.2.git/?a=commit;h=04928e30804592dc68f2ad58082a1e3288be4415
---

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

diff --git a/modules/codec/speex.c b/modules/codec/speex.c
index c93fbc6..e21c7fa 100644
--- a/modules/codec/speex.c
+++ b/modules/codec/speex.c
@@ -1061,7 +1061,7 @@ static block_t *Encode( encoder_t *p_enc, block_t *p_aout_buf )
     if( unlikely( !p_aout_buf ) ) return NULL;
 
     unsigned char *p_buffer = p_aout_buf->p_buffer;
-    int i_samples = p_aout_buf->i_nb_samples;
+    unsigned i_samples = p_aout_buf->i_nb_samples;
     int i_samples_delay = p_sys->i_samples_delay;
 
     mtime_t i_pts = p_aout_buf->i_pts -



More information about the vlc-commits mailing list