On Apr 29, 2011, at 12:11 AM, Ronald S. Bultje wrote:

> 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

Ahh -- that's what I was missing.  And that makes sense now.  I knew there had 
to be something simple I was missing, but I just couldn't place it. 

Thanks!
dennis

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to