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:
@@ -313,7 +313,7 @@ std::optional<video_encoder::data> video_encoder_x264::encode(uint8_t slot, uint
|
||||
x264_encoder_reconfig(enc, ¶m);
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user