<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 av stream. If network is bad, some ffmpeg functions will block indefinitely.<br><br>The rtmp application will use the following functions, including avformat_open_input(), avformat_find_stream_info(), avformat_alloc_output_context2(), avio_open(), avformat_write_header(), av_read_frame(), av_interleaved_write_frame(), av_write_trailer(), avformat_close_input(), and avformat_free_context().<br><br>The above functions are used in ffmpeg and transcoding binary programs.<br><br>Which function has indefinite-block issue? How to avoid indefinite-block issue?<br><br>Thanks!<br><br>Regards<br><br>Andrew<br></div></div><br><br><span title="neteasefooter"><p> </p></span>