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:
@@ -239,7 +239,7 @@ void video_encoder::present_image(vk::Image y_cbcr, vk::SemaphoreSubmitInfo info
|
||||
// Wait for encoder to be done
|
||||
present_slot = (present_slot + 1) % num_slots;
|
||||
state[present_slot].wait(busy);
|
||||
if (idr->should_skip(frame_index))
|
||||
if (idr->should_skip(frame_index, stream_idx))
|
||||
{
|
||||
state[present_slot] = skip;
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user