@@ -1116,7 +1116,6 @@ static int ff_filter_frame_framed(AVFilterLink *link, AVFrame *frame)
filter_frame = default_filter_frame;
ret = filter_frame(link, frame);
link->frame_count_out++;
- ff_update_link_current_pts(link, frame->pts);
return ret;
fail:
@@ -1515,6 +1514,7 @@ int ff_link_check_available_samples(AVFilterLink *link, unsigned min)
static void consume_update(AVFilterLink *link, const AVFrame *frame)
{
+ ff_update_link_current_pts(link, frame->pts);
ff_link_process_commands(link, frame);
ff_link_process_timeline(link, frame);
link->frame_count_out++;
Signed-off-by: Nicolas George <george@nsup.org> --- libavfilter/avfilter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)