完成DevChannel类的视频

This commit is contained in:
xiongziliang
2018-10-29 11:48:24 +08:00
parent d8a1173469
commit 19b6a2925a
3 changed files with 99 additions and 223 deletions

View File

@@ -185,10 +185,10 @@ bool HLSMaker::removets() {
void HLSMaker::onTrackFrame(const Frame::Ptr &frame) {
switch (frame->getCodecId()){
case CodecH264:{
if( frame->prefixSize() == 4){
if( frame->prefixSize() != 0){
inputH264(frame->data(), frame->size(),frame->stamp());
}else{
WarnL << "h264必须要有头4个字节的前缀";
WarnL << "h264必须要有头4个或3个字节的前缀";
}
}
break;