[vlc-commits] wma: use vlc_alloc helper
Thomas Guillem
git at videolan.org
Sat Nov 11 19:00:02 CET 2017
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Sat Nov 11 18:43:37 2017 +0100| [8aa2d180855643087105a57f83d767898a40f60b] | committer: Thomas Guillem
wma: use vlc_alloc helper
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8aa2d180855643087105a57f83d767898a40f60b
---
modules/codec/wmafixed/wma.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/codec/wmafixed/wma.c b/modules/codec/wmafixed/wma.c
index a1b7124f1c..dea8c7370c 100644
--- a/modules/codec/wmafixed/wma.c
+++ b/modules/codec/wmafixed/wma.c
@@ -254,7 +254,7 @@ static int DecodeFrame( decoder_t *p_dec, block_t *p_block )
/* worst case */
size_t i_buffer = BLOCK_MAX_SIZE * MAX_CHANNELS * p_sys->wmadec.nb_frames;
free( p_sys->p_output );
- p_sys->p_output = malloc(i_buffer * sizeof(int32_t) );
+ p_sys->p_output = vlc_alloc(i_buffer, sizeof(int32_t));
p_sys->p_samples = (int8_t*)p_sys->p_output;
if( !p_sys->p_output )
More information about the vlc-commits
mailing list