[vlc-commits] ball: use vlc_alloc helper
Thomas Guillem
git at videolan.org
Sat Nov 11 19:00:23 CET 2017
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Sat Nov 11 18:50:27 2017 +0100| [5956d7c477938cb91ee62ab07072ddb5a25de8fc] | committer: Thomas Guillem
ball: use vlc_alloc helper
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5956d7c477938cb91ee62ab07072ddb5a25de8fc
---
modules/video_filter/ball.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/modules/video_filter/ball.c b/modules/video_filter/ball.c
index c4c1f4791b..da93211ef6 100644
--- a/modules/video_filter/ball.c
+++ b/modules/video_filter/ball.c
@@ -576,20 +576,20 @@ static void FilterBall( filter_t *p_filter, picture_t *p_inpic,
if( !p_filter->p_sys->p_smooth )
p_filter->p_sys->p_smooth =
- (uint32_t *)malloc( i_numLines * i_numCols
- * sizeof(uint32_t));
+ (uint32_t *)vlc_alloc( i_numLines * i_numCols,
+ sizeof(uint32_t));
p_smooth = p_filter->p_sys->p_smooth;
if( !p_filter->p_sys->p_grad_x )
p_filter->p_sys->p_grad_x =
- (int32_t *)malloc( i_numLines * i_numCols
- * sizeof(int32_t));
+ (int32_t *)vlc_alloc( i_numLines * i_numCols,
+ sizeof(int32_t));
p_grad_x = p_filter->p_sys->p_grad_x;
if( !p_filter->p_sys->p_grad_y )
p_filter->p_sys->p_grad_y =
- (int32_t *)malloc( i_numLines * i_numCols
- * sizeof(int32_t));
+ (int32_t *)vlc_alloc( i_numLines * i_numCols,
+ sizeof(int32_t));
p_grad_y = p_filter->p_sys->p_grad_y;
if( !p_smooth || !p_grad_x || !p_grad_y ) return;
More information about the vlc-commits
mailing list