On Fri, 15 May 2009 06:10:48 -0400, Scott Andrew <[email protected]>
wrote:
When I get my packets I am trying to deal with some user data that needs
to be handled in diplay order. Them MPEGs I am dealing with are MPEG2¹s
that seem to be re-ordered. When I get the data the data is coming back
in the wrong order.
The format codec returns packets in DTS order. AVPacket.PTS and DTS are
in the container's timebase.
The video codec returns frames in PTS order, but the PTS of AVFrame is not
the container's packet PTS.
Use AVCodecContext.reordered_opaque and AVFrame.reordered_opaque to trace
the packet's PTS value (or any 64-bit int of your choosing) through the
decoder to find out which frame it generated.
--
Michael Conrad
IntelliTree Solutions llc.
513-552-6362
[email protected]
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user