<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 11, 2015 at 8:10 PM, Rafael Lúcio <span dir="ltr"><<a href="mailto:rafael@inova.in" target="_blank">rafael@inova.in</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Its very simple... everytime I call av_read_frame( input_context, input_packet )  I save the pts into the last_pts variable...</blockquote></div><br><br></div><div class="gmail_extra">One way is to make a buffer and a queue and reorganize the PTS in increasing order before processing.<br></div></div>