Skip to content

Commit

Permalink
demux: hls: fix null deref warning (cid #1405538)
Browse files Browse the repository at this point in the history
  • Loading branch information
fcartegnie committed Apr 28, 2017
1 parent 0ebdd65 commit 075bc71
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/demux/hls/playlist/Parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,8 @@ void M3U8Parser::parseSegments(vlc_object_t *, Representation *rep, const std::l
}

M3U8 *m3u8 = dynamic_cast<M3U8 *>(rep->getPlaylist());
encryption.key = m3u8->getEncryptionKey(keyurl.toString());
if(likely(m3u8))
encryption.key = m3u8->getEncryptionKey(keyurl.toString());
if(keytag->getAttributeByName("IV"))
{
encryption.iv.clear();
Expand Down

0 comments on commit 075bc71

Please sign in to comment.