mirror of
https://gitee.com/xia-chu/ZLMediaKit.git
synced 2026-05-20 16:57:48 +08:00
提高某些国标流注册速度 2
This commit is contained in:
parent
f11467c2a8
commit
897d127099
@ -131,7 +131,7 @@ void DecoderImp::onDecode(int stream, int codecid, int flags, int64_t pts, int64
|
|||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
_last_is_keyframe = frame->keyFrame();
|
_last_is_keyframe = frame->keyFrame() || frame->configFrame();
|
||||||
_video_merge = &ref.second;
|
_video_merge = &ref.second;
|
||||||
ref.second.inputFrame(frame, [this, stream, codec](uint64_t dts, uint64_t pts, const Buffer::Ptr &buffer, bool) {
|
ref.second.inputFrame(frame, [this, stream, codec](uint64_t dts, uint64_t pts, const Buffer::Ptr &buffer, bool) {
|
||||||
onFrame(stream, Factory::getFrameFromBuffer(codec, buffer, dts, pts));
|
onFrame(stream, Factory::getFrameFromBuffer(codec, buffer, dts, pts));
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user