[vlc-commits] hxxx_nal: use vlc_alloc helper

Thomas Guillem git at videolan.org
Sat Nov 11 19:00:20 CET 2017


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Sat Nov 11 18:49:17 2017 +0100| [2c1539bdaa57b2eef5de4a1d638ab4ae2697a147] | committer: Thomas Guillem

hxxx_nal: use vlc_alloc helper

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

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

diff --git a/modules/packetizer/hxxx_nal.c b/modules/packetizer/hxxx_nal.c
index eb899c6976..73450606e3 100644
--- a/modules/packetizer/hxxx_nal.c
+++ b/modules/packetizer/hxxx_nal.c
@@ -55,7 +55,7 @@ block_t *hxxx_AnnexB_to_xVC( block_t *p_block, uint8_t i_nal_length_size )
     if(!p_block->i_buffer || p_block->p_buffer[0])
         goto error;
 
-    if(! (p_list = malloc( sizeof(*p_list) * i_list )) )
+    if(! (p_list = vlc_alloc( i_list, sizeof(*p_list) )) )
         goto error;
 
     /* Search all startcode of size 3 */



More information about the vlc-commits mailing list