mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-26 04:31:37 +08:00
commit
15539bc27e
@ -267,8 +267,10 @@ public:
|
|||||||
* @param frame 数据帧
|
* @param frame 数据帧
|
||||||
*/
|
*/
|
||||||
void inputFrame(const Frame::Ptr &frame) override{
|
void inputFrame(const Frame::Ptr &frame) override{
|
||||||
bool first_frame = true;
|
int type = H265_TYPE(*((uint8_t *)frame->data() + frame->prefixSize()));
|
||||||
splitH264(frame->data() + frame->prefixSize(),
|
if(type == H265Frame::NAL_VPS){
|
||||||
|
bool first_frame = true;
|
||||||
|
splitH264(frame->data() + frame->prefixSize(),
|
||||||
frame->size() - frame->prefixSize(),
|
frame->size() - frame->prefixSize(),
|
||||||
[&](const char *ptr, int len){
|
[&](const char *ptr, int len){
|
||||||
if(first_frame){
|
if(first_frame){
|
||||||
@ -286,6 +288,9 @@ public:
|
|||||||
inputFrame_l(sub_frame);
|
inputFrame_l(sub_frame);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
}else{
|
||||||
|
inputFrame_l(frame);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
Loading…
Reference in New Issue
Block a user