[vlc-commits] normvol: use vlc_alloc helper

Thomas Guillem git at videolan.org
Sat Nov 11 18:59:52 CET 2017


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Sat Nov 11 18:40:55 2017 +0100| [43b49e5d352afcdd75aea464167ae8c5c044aba8] | committer: Thomas Guillem

normvol: use vlc_alloc helper

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=43b49e5d352afcdd75aea464167ae8c5c044aba8
---

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

diff --git a/modules/audio_filter/normvol.c b/modules/audio_filter/normvol.c
index 6bee12f842..428529f146 100644
--- a/modules/audio_filter/normvol.c
+++ b/modules/audio_filter/normvol.c
@@ -146,7 +146,7 @@ static block_t *DoWork( filter_t *p_filter, block_t *p_in_buf )
     if( !pf_sum )
         goto out;
 
-    pf_gain = malloc( sizeof(float) * i_channels );
+    pf_gain = vlc_alloc( i_channels, sizeof(float) );
     if( !pf_gain )
     {
         free( pf_sum );



More information about the vlc-commits mailing list