Hi, On Thu, Apr 28, 2011 at 5:35 PM, Dennis Munsie <[email protected]> wrote: > I might be missing something, but it doesn't appear that the PTS field in > AVPacket is preserved when decoding an h.264 frame. The AVFrame that gets > returned has PTS set to AV_NOPTS_VALUE. Is this the desired behavior? If I > put together a patch that preserved the PTS field, would that be something > others are interested in?
AVFrame.pts is for the timestamp (timecode) _in_ the video frame, not the timestamp _of_ the video frame. For that, use the AVPacket.pts value, it'll be copied into AVFrame.pkt_pts. Ronald _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
