<div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div>Hi,</div><div><br></div><div>I found one issue about x264 flush operation. Normally, multi-threads is used, and coded video data is not output immediately.</div><div><br></div><div>x264_encoder_encode() is used to encode raw frame, and is also used to flush delayed frames with pic_in==NULL. If x264 flushes delayed frames, and continues encode raw frames, there is deadlock when calling <span style="line-height: 23.7999992370605px;">x264_encoder_encode(). The reason is that, lookahead thread, i.e. </span>x264_lookahead_thread() doesn't exist after flush operation.</div><div><br></div><div>Can x264 encoder continue to encode raw frames after flush delayed frames?</div><div><br></div><div>Thanks!</div><div><br></div><div>B.R.</div><div><br></div><div>andrew</div><div><br></div></div><br><br><span title="neteasefooter"><span id="netease_mail_footer"></span></span>