[vlc-devel] [PATCH] packetizer: hxxx: fix typo
Zhao Zhili
wantlamy at gmail.com
Wed Jun 21 15:10:56 CEST 2017
---
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 22c856c..eb899c6 100644
--- a/modules/packetizer/hxxx_nal.c
+++ b/modules/packetizer/hxxx_nal.c
@@ -89,7 +89,7 @@ block_t *hxxx_AnnexB_to_xVC( block_t *p_block, uint8_t
i_nal_length_size )
if(i_nalcount == i_list)
{
i_list += 16;
- struct nalmoves_e *p_new = malloc( sizeof(*p_new) * i_list
);
+ struct nalmoves_e *p_new = realloc( p_list, sizeof(*p_new)
* i_list );
if(unlikely(!p_new))
goto error;
p_list = p_new;
--
2.7.4
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20170621/9d66b091/attachment.html>
More information about the vlc-devel
mailing list