[FFmpeg-cvslog] r25241 - in trunk: cmdutils.c cmdutils.h ffplay.c
Diego Biurrun
diego
Tue Sep 28 21:05:45 CEST 2010
On Tue, Sep 28, 2010 at 04:05:12AM +0200, astrange wrote:
>
> Log:
> Extract timestamp correction code from ffplay.c to cmdutils.c
>
> --- trunk/cmdutils.h Tue Sep 28 02:33:21 2010 (r25240)
> +++ trunk/cmdutils.h Tue Sep 28 04:05:12 2010 (r25241)
> @@ -226,4 +226,28 @@ int read_yesno(void);
> +
> +/**
> + * Resets the state of the PtsCorrectionContext.
> + */
> +void init_pts_correction(PtsCorrectionContext *ctx);
ctx is left undocumented.
> +/**
> + * Attempts to guess proper monotonic timestamps for decoded video frames
> + * which might have incorrect times. Input timestamps may wrap around, in
> + * which case the output will as well.
> + *
> + * @param pts The pts field of the decoded AVPacket, as passed through
> + * AVCodecContext.reordered_opaque
nit: This could be more readable aligned, i.e.
* @param pts the pts field of the decoded AVPacket, as passed through
* AVCodecContext.reordered_opaque
> + * @param dts The dts field of the decoded AVPacket
> + * @return One of the input values. May be AV_NOPTS_VALUE.
> + */
> +int64_t guess_correct_pts(PtsCorrectionContext *ctx, int64_t pts, int64_t dts);
ctx is left undocumented.
Diego
More information about the ffmpeg-cvslog
mailing list