Rework vaapi/nvenc/x264 IDR handling

Fix race conditions with should_skip
detect if nothings goes out from decoder and issue an IDR
remove idr_received, go directly to running state
This commit is contained in:
Patrick Nicolas
2026-10-05 22:27:15 +02:00
parent 4ea97485cc
commit 2fc4708bc6
8 changed files with 54 additions and 39 deletions
+1 -1
View File
@@ -563,7 +563,7 @@ std::optional<video_encoder::data> video_encoder_nvenc::encode(uint8_t slot, uin
.pictureStruct = NV_ENC_PIC_STRUCT_FRAME,
};
auto frame_type = idr_handler.get_type(frame_index);
auto frame_type = idr_handler.get_type(frame_index, stream_idx);
switch (frame_type)
{
case default_idr_handler::frame_type::i: