[FFmpeg-devel] [PATCH 1/4] lavfi: rescale link->current_pts.

Stefano Sabatini stefasab at gmail.com
Tue Jul 17 22:49:44 CEST 2012


On date Tuesday 2012-07-17 18:13:16 +0200, Nicolas George encoded:
> The doxy says, and the heap implementations assumes,
> it is in AV_TIME_BASE units.
> 
> Signed-off-by: Nicolas George <nicolas.george at normalesup.org>
> ---
>  libavfilter/avfilter.c |    3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c
> index 5094105..c698d8a 100644
> --- a/libavfilter/avfilter.c
> +++ b/libavfilter/avfilter.c
> @@ -359,7 +359,8 @@ void ff_update_link_current_pts(AVFilterLink *link, int64_t pts)
>  {
>      if (pts == AV_NOPTS_VALUE)
>          return;
> -    link->current_pts =  pts; /* TODO use duration */
> +    link->current_pts = av_rescale_q(pts, link->time_base, AV_TIME_BASE_Q);
> +    /* TODO use duration */

Looks good, assuming it is correct and it has been tested, as I guess,
thanks.
-- 
FFmpeg = Fascinating Fascinating Merciful Patchable Elastic Guru


More information about the ffmpeg-devel mailing list