[Ffmpeg-devel] dts/pts question
Michael Niedermayer
michaelni
Sat Aug 19 03:07:25 CEST 2006
Hi
On Sat, Aug 19, 2006 at 02:21:47AM +0300, Andrew Voznytsa wrote:
> Hi all,
>
> in case if decoder has some delay before emitting decoded frame and/or in case where decoding and display orders are not equal - is there some mechanism to identify which frame was returned through avcodec_decode_video(.. ,AVFrame* ,..)?
>
> To be more clear: I've DTS/PTS before decoding frame and after calling avcodec_decode_video() need to know PTS of returned frame.
the PTS of returned frame should be the DTS of what you feed into
avcodec_decode_video() normally (except for h.264 ...)
alternatively look at AVCodecContext.get_buffer() and AVFrame.opaque ...
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
In the past you could go to a library and read, borrow or copy any book
Today you'd get arrested for mere telling someone where the library is
More information about the ffmpeg-devel
mailing list