Commit 314e2302 authored by Steve Lhomme's avatar Steve Lhomme

demux:mkv: fix potential NULL dereference

CID #1464407
parent f469f7c8
......@@ -81,6 +81,9 @@ namespace {
bool send (EbmlElement * const& element, void* payload) const
{
if ( element == nullptr )
return false;
EbmlProcessorEntry eb = EbmlProcessorEntry (
static_cast<EbmlId const&> (*element), NULL, NULL
);
......@@ -94,7 +97,7 @@ namespace {
_processors.begin(), cit_end, eb
);
if (element && cit != cit_end)
if (cit != cit_end)
{
// --------------------------------------------------------------
// normally we only need to compare the addresses of the EbmlId
......
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