Compare commits

...

2 Commits

Author SHA1 Message Date
sbkyy
c3a9b9eb07
Merge a41c6a63e4 into 4c90a1a95b 2024-10-25 06:43:24 +00:00
sbkyy
a41c6a63e4 CPU消耗过高导致卡顿 2024-10-25 14:43:05 +08:00

View File

@ -282,6 +282,8 @@ void VideoStack::start() {
_dev->inputYUV((char**)_buffer->get()->data, _buffer->get()->linesize, pts); _dev->inputYUV((char**)_buffer->get()->data, _buffer->get()->linesize, pts);
pts += frameInterval; pts += frameInterval;
} else {
std::this_thread::sleep_for(std::chrono::milliseconds(1));
} }
} }
}); });