<div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div>Hi,<br><br>I'm making program to read and write rtmp stream to server. Many ffmpeg functions are related in network operation, such as connection, read and write:<br><br>avformat_open_input(), avformat_find_stream_info(), av_read_frame(), and av_interleaved_write_frame().<br><br>If network is not good, avformat_open_input() and av_read_frame() will wait indefinitely. How to deal with indefinite-waiting issue?<br><br>Thanks!<br><br>Regards<br><br>Andrew<br></div></div><br><br><span title="neteasefooter"><p> </p></span>