Skip to content
This repository
Browse code

fixed, validate extradata before dereferencing it

  • Loading branch information...
commit e4c9e8c6e5088e471c4f5a1ff28ac3f486685c46 1 parent f5ff739
authored August 25, 2013
2  xbmc/cores/dvdplayer/DVDCodecs/Video/DVDVideoCodecAmlogic.cpp
@@ -86,7 +86,7 @@ bool CDVDVideoCodecAmlogic::Open(CDVDStreamInfo &hints, CDVDCodecOptions &option
86 86
       m_pFormatName = "am-h264";
87 87
       // convert h264-avcC to h264-annex-b as h264-avcC
88 88
       // under streamers can have issues when seeking.
89  
-      if (*(uint8_t*)m_hints.extradata == 1)
  89
+      if (m_hints.extradata && *(uint8_t*)m_hints.extradata == 1)
90 90
       {
91 91
         m_bitstream = new CBitstreamConverter;
92 92
         m_bitstream->Open(m_hints.codec, (uint8_t*)m_hints.extradata, m_hints.extrasize, true);

0 notes on commit e4c9e8c

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