Commit 37f3f80b authored by Thomas Guillem's avatar Thomas Guillem Committed by Rémi Denis-Courmont

mp4: use vlc_alloc helper

parent 3c2b99c8
......@@ -3618,7 +3618,7 @@ static int MP4_ReadBox_HMMT( stream_t *p_stream, MP4_Box_t *p_box )
if( p_hmmt->i_chapter_count > MAX_CHAPTER_COUNT )
p_hmmt->i_chapter_count = MAX_CHAPTER_COUNT;
p_hmmt->pi_chapter_start = malloc( p_hmmt->i_chapter_count * sizeof(uint32_t) );
p_hmmt->pi_chapter_start = vlc_alloc( p_hmmt->i_chapter_count, sizeof(uint32_t) );
if( p_hmmt->pi_chapter_start == NULL )
MP4_READBOX_EXIT( 0 );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment