Commit f6fb26cf authored by Laurent Aimar's avatar Laurent Aimar Committed by Jean-Baptiste Kempf

Fixed a possible NULL dereference in the GME demuxer.

It was added by [5e0e7978ffa0ad34c780c08caf518efcc4082127].
(cherry picked from commit ffc31b5c43de67733ee90b3ea07409a7d81733d0)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent fee7a101
......@@ -105,10 +105,14 @@ static int Open (vlc_object_t *obj)
return VLC_ENOMEM;
}
if (data)
{
gme_load_custom (sys->emu, ReaderBlock, data->i_buffer, data);
block_Release(data);
}
else
{
gme_load_custom (sys->emu, ReaderStream, size, demux->s);
block_Release(data);
}
gme_start_track (sys->emu, sys->track_id = 0);
es_format_t fmt;
......
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