mirror of
https://gitee.com/xia-chu/ZLMediaKit.git
synced 2026-05-06 10:57:50 +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;
|
||||
}
|
||||
_last_is_keyframe = frame->keyFrame();
|
||||
_last_is_keyframe = frame->keyFrame() || frame->configFrame();
|
||||
_video_merge = &ref.second;
|
||||
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));
|
||||
|
||||
Loading…
Reference in New Issue
Block a user