修复某些rtmp流无metedata时导致崩溃的问题

This commit is contained in:
xiongziliang 2019-02-27 17:33:38 +08:00
parent 63b8477f0d
commit a6d27306d0

View File

@ -70,6 +70,9 @@ private:
if(_pRtmpMediaSrc){
_pRtmpMediaSrc->onWrite(chunkData);
}
if(!_parser){
_parser.reset(new RtmpDemuxer());
}
_parser->inputRtmp(chunkData);
checkInited();
}