mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-14 12:05:58 +08:00
完成DevChannel类的视频
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user