<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Sep 2, 2015 at 9:47 AM, qw <span dir="ltr"><<a href="mailto:applemax82@163.com" target="_blank">applemax82@163.com</a>></span> wrote:<br><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><br><div>As we know, video coding support I, P, B picture in general. If video encoder adopts B picture, then output packets' pts will be different from dts. In this case, we can't simply set pts/dts to the number of output packets. How to handle this case?</div><div><br></div></div></blockquote><div><br></div><div>I assume that the proper reordering (buffering) and dts handling is done internally by the codec. This also comes from the nature of pts/dts difference. You may tell the codec about your planned pts (presentation time stamp) while not knowing about actual internals of the codec (decoding time stamp). <br></div><div> </div></div></div></div>