<div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div>Hi,</div><div><br></div><div>Below is the description of av_read_frame(), which returns the next frame of a stream.</div><div><br></div><div><a href="http://ffmpeg.org/doxygen/2.6/group__lavf__decoding.html#ga4fdb3084415a82e3810de6ee60e46a61" _src="http://ffmpeg.org/doxygen/2.6/group__lavf__decoding.html#ga4fdb3084415a82e3810de6ee60e46a61">http://ffmpeg.org/doxygen/2.6/group__lavf__decoding.html#ga4fdb3084415a82e3810de6ee60e46a61</a> </div><div><br></div><div>And I have one question about <span style="line-height: 23.8px;">av_read_frame(). I expect </span><span style="line-height: 23.8px;">av_read_frame() </span><span style="line-height: 23.8px;">returns av packet with smaller timestamp, and then returns av packet with larger timestamp. </span><span style="line-height: 23.8px;">Can the function return av packets strictly based on timestamp?</span></div><div><span style="line-height: 23.8px;"><br></span></div><div><span style="line-height: 23.8px;">If not, does ffmpeg provide other functions to do it?</span></div><div><br></div><div>Thanks!</div><div><br></div><div>Andrew</div><div><br></div></div><br><br><span title="neteasefooter"><p> </p></span>