<div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div>Hi,<br><br>I use avformat_open_input(), and avformat_find_stream_info() to open rtmp stream, and use av_read_frame() to read av packet. If there is no incoming rtmp stream, avformat_open_input() and  avformat_find_stream_info() will wait indefinitely. If incoming rtmp stream is terminated in the middle, av_read_frame() will wait indefinitely.<br><br>Is there some method for ffmpeg lib to effective handle this sort of indefinite waiting in case of network issue?<br><br>Thanks!<br><br>Regards<br><br>Andrew<br><br></div></div><br><br><span title="neteasefooter"><p> </p></span>