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
@@ -313,7 +313,7 @@ std::optional<video_encoder::data> video_encoder_x264::encode(uint8_t slot, uint
x264_encoder_reconfig(enc, &param);
idr->reset();
}
auto frame_type = idr_handler.get_type(frame_index);
auto frame_type = idr_handler.get_type(frame_index, stream_idx);
int num_nal;
x264_nal_t * nal;
auto & pic = in[slot].pic;