<div>Hi all,</div>
<div>    I got RTP strem from a IP camera, decode ervery frame and display it, and now I want to save the stream to file for later playing.</div>
<div>    My question is, can i directly save AVPacket data to a file, like the following:</div>
<div>   </div>
<div>       while(av_read_frame(pFormatCtx, &packet)>=0) {<br>        if(packet.stream_index==videoStream) {</div>
<div>            here I write packet.data to a file.</div>
<div> </div>
<div>    After doing that, I got a file,and with the same program I play it.Is this process <span class="hps" title="点击可显示其他翻译">correct?</span></div>
<div><span class="hps" title="点击可显示其他翻译"></span> </div>