[FFmpeg-devel] [PATCH] lavfi: use correct PTS for link age.

Stefano Sabatini stefasab at gmail.com
Mon Jul 30 17:39:41 CEST 2012


On date Monday 2012-07-30 16:50:09 +0200, Nicolas George encoded:
> When start_frame has returned, the buffer reference's PTS
> may have been modified by another filter.
> 
> Signed-off-by: Nicolas George <nicolas.george at normalesup.org>
> ---
>  libavfilter/video.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/libavfilter/video.c b/libavfilter/video.c
> index 566b0ec..95791cd 100644
> --- a/libavfilter/video.c
> +++ b/libavfilter/video.c
> @@ -275,7 +275,7 @@ int ff_start_frame(AVFilterLink *link, AVFilterBufferRef *picref)
>      }
>      pts = link->cur_buf->pts;
>      ret = start_frame(link, link->cur_buf);
> -    ff_update_link_current_pts(link,link->cur_buf ?  link->cur_buf->pts : pts);
> +    ff_update_link_current_pts(link, pts);
>      if (ret < 0)
>          clear_link(link);

LGTM, thanks.
-- 
FFmpeg = Frightening and Faithful Multimedia Portable Enlightened Gymnast


More information about the ffmpeg-devel mailing list