mirror of
https://gitee.com/xia-chu/ZLMediaKit.git
synced 2026-05-17 23:37:49 +08:00
for h264 multi slice on frame compatibility
This commit is contained in:
parent
e0d162c460
commit
1920802764
@ -191,9 +191,12 @@ bool FrameMerger::willFlush(const Frame::Ptr &frame) const{
|
|||||||
}
|
}
|
||||||
switch (frame->getCodecId()) {
|
switch (frame->getCodecId()) {
|
||||||
case CodecH264 : {
|
case CodecH264 : {
|
||||||
if (H264_TYPE(frame->data()[frame->prefixSize()]) == H264Frame::NAL_B_P) {
|
if (frame->data()[frame->prefixSize()+1]&0x80 !=0) {
|
||||||
//如果是264的b/p帧,那么也刷新输出
|
//264 新一帧的开始,刷新输出
|
||||||
return true;
|
return true;
|
||||||
|
}else{
|
||||||
|
// 不刷新输出
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user