[FFmpeg-devel] [PATCH] Add documentation that seeking is done by DTS and not PTS

Michael Niedermayer michaelni at gmx.at
Thu Apr 12 14:40:31 CEST 2012


On Wed, Apr 11, 2012 at 10:22:59PM -0600, Michael Bradshaw wrote:
> Hi,
> 
> Attached patch is in response to ticket 1189. I don't know if anyone would
> like me to change the wording or include more details. I feel like there
> should at least be a note that the timestamp is a DTS and not a PTS, for
> clarity. I had always thought it was a PTS until Reimar told said otherwise.
> 
> Thanks,
> 
> Michael

>  avformat.h |    5 +++++
>  1 file changed, 5 insertions(+)
> 37cfbcebf098adc0207c71d5139e4cc0011abb05  0001-Added-documentation-to-seek-that-seeking-is-done-by-.patch
> From d3dc24b255d6aa1a4c2e0e05701fdd0316fd049d Mon Sep 17 00:00:00 2001
> From: Michael Bradshaw <mbradshaw at sorensonmedia.com>
> Date: Wed, 11 Apr 2012 22:19:17 -0600
> Subject: [PATCH] Added documentation to seek that seeking is done by DTS and
>  not PTS
> 
> 
> 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 *pkt);
>  /**
>   * 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
example.


[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Complexity theory is the science of finding the exact solution to an
approximation. Benchmarking OTOH is finding an approximation of the exact
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120412/7c8ae694/attachment.asc>


More information about the ffmpeg-devel mailing list