Commit 6151e58d authored by Éloi Bail's avatar Éloi Bail Committed by Guillaume Roguez

daemon: force keyframes for 3 first frames

Issue: #79690
Change-Id: I953925048763a97eb58c2502164e2377405ee8d8
Signed-off-by: Guillaume Roguez's avatarGuillaume Roguez <guillaume.roguez@savoirfairelinux.com>
parent 94f0df9d
......@@ -82,7 +82,8 @@ private:
std::unique_ptr<MediaIOHandle> muxContext_ = nullptr;
std::unique_ptr<MediaEncoder> videoEncoder_ = nullptr;
std::atomic<int> forceKeyFrame_ = { 0 };
static constexpr int KEYFRAMES_AT_START {3}; // Number of keyframes to enforce at stream startup
std::atomic<int> forceKeyFrame_ {KEYFRAMES_AT_START};
int64_t frameNumber_ = 0;
std::string sdp_ = "";
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment