[FFmpeg-devel] [PATCH] Add documentation that seeking is done by DTS and not PTS
mbradshaw at sorensonmedia.com
Thu Apr 12 15:42:42 CEST 2012
On Thu, Apr 12, 2012 at 6:40 AM, Michael Niedermayer <michaelni at gmx.at>wrote:
> On Wed, Apr 11, 2012 at 10:22:59PM -0600, Michael Bradshaw wrote:
> > Signed-off-by: Michael Bradshaw <mbradshaw at sorensonmedia.com>
> > ---
> > libavformat/avformat.h | 5 +++++
> > 1 files changed, 5 insertions(+), 0 deletions(-)
> > diff --git a/libavformat/avformat.h b/libavformat/avformat.h
> > index 5a11fdc..e4ec415 100644
> > --- a/libavformat/avformat.h
> > +++ b/libavformat/avformat.h
> > @@ -1456,6 +1456,9 @@ int av_read_frame(AVFormatContext *s, AVPacket
> > /**
> > * Seek to the keyframe at timestamp.
> > * 'timestamp' in 'stream_index'.
> > + *
> > + * Note that seeking is done by DTS and not by PTS.
> this is not true for all demuxers, nut should be seeking to pts for
Oh great, so this is even more confusing than I thought ;). Is there any
way of knowing if a demuxer seeks by DTS or by PTS? Should I change the
patch to say something along the lines of:
"Note that some demuxers seek by DTS and some seek by PTS."?
More information about the ffmpeg-devel