Skip to content
Browse files

fixed, validate extradata before dereferencing it

  • Loading branch information...
1 parent f5ff739 commit e4c9e8c6e5088e471c4f5a1ff28ac3f486685c46 @davilla davilla committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 xbmc/cores/dvdplayer/DVDCodecs/Video/DVDVideoCodecAmlogic.cpp
View
2 xbmc/cores/dvdplayer/DVDCodecs/Video/DVDVideoCodecAmlogic.cpp
@@ -86,7 +86,7 @@ bool CDVDVideoCodecAmlogic::Open(CDVDStreamInfo &hints, CDVDCodecOptions &option
m_pFormatName = "am-h264";
// convert h264-avcC to h264-annex-b as h264-avcC
// under streamers can have issues when seeking.
- if (*(uint8_t*)m_hints.extradata == 1)
+ if (m_hints.extradata && *(uint8_t*)m_hints.extradata == 1)
{
m_bitstream = new CBitstreamConverter;
m_bitstream->Open(m_hints.codec, (uint8_t*)m_hints.extradata, m_hints.extrasize, true);

0 comments on commit e4c9e8c

Please sign in to comment.
Something went wrong with that request. Please try again.