Commit 21096ae2 authored by Filip Roséen's avatar Filip Roséen Committed by Jean-Baptiste Kempf

demux/mp4: SetupAudioES: add missing error-check

The changes introduced in 08a2eb61 correctly adds a new block for
reading from p_extra, it however left out the if-condition to protect
said block.
Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent 2e2705bc
......@@ -913,6 +913,7 @@ int SetupAudioES( demux_t *p_demux, mp4_track_t *p_track, MP4_Box_t *p_sample )
{
size_t i_extra = p_dfLa->data.p_binary->i_blob;
uint8_t *p_extra = malloc(i_extra);
if( likely( p_extra ) )
{
p_track->fmt.i_extra = i_extra;
p_track->fmt.p_extra = p_extra;
......
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