Discover H264 keyframes on dequeue

This commit is contained in:
Kamil Trzciński
2022-10-29 11:36:58 +02:00
parent ec2ed5e392
commit 79e9bca11f
6 changed files with 27 additions and 26 deletions

View File

@ -115,7 +115,7 @@ public:
}
if (!had_key_frame) {
if (!h264_is_key_frame(buf)) {
if (!buf->flags.is_keyframe) {
device_video_force_key(buf->buf_list->dev);
LOG_VERBOSE(self, "Skipping as key frame was not yet sent.");
return;