[vlc-commits] spudec: use vlc_alloc helper
Thomas Guillem
git at videolan.org
Sat Nov 11 19:00:00 CET 2017
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Sat Nov 11 18:43:15 2017 +0100| [7c32eb0e0ae9dcce801c674e18470b7c65641fbe] | committer: Thomas Guillem
spudec: use vlc_alloc helper
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7c32eb0e0ae9dcce801c674e18470b7c65641fbe
---
modules/codec/spudec/parse.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/codec/spudec/parse.c b/modules/codec/spudec/parse.c
index c4e8bc0794..275864f187 100644
--- a/modules/codec/spudec/parse.c
+++ b/modules/codec/spudec/parse.c
@@ -125,7 +125,7 @@ subpicture_t * ParsePacket( decoder_t *p_dec )
* one byte gaves two nibbles and may be used twice (once per field)
* generating 4 codes.
*/
- spu_data.p_data = malloc( sizeof(*spu_data.p_data) * 2 * 2 * p_sys->i_rle_size );
+ spu_data.p_data = vlc_alloc( p_sys->i_rle_size, sizeof(*spu_data.p_data) * 2 * 2 );
/* We try to display it */
if( ParseRLE( p_dec, &spu_data, &spu_properties ) )
More information about the vlc-commits
mailing list