From b8a5c76131944b4cc17c6db609288d0000d56a43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20B=C5=93sch?= Date: Mon, 15 Apr 2013 17:42:04 +0200 Subject: lavfi: add frame counter into AVFilterLink and use it in filters. --- libavfilter/vf_telecine.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'libavfilter/vf_telecine.c') diff --git a/libavfilter/vf_telecine.c b/libavfilter/vf_telecine.c index 76fb22c..136df22 100644 --- a/libavfilter/vf_telecine.c +++ b/libavfilter/vf_telecine.c @@ -43,7 +43,6 @@ typedef struct { double ts_unit; int out_cnt; int occupied; - int64_t frame_count; int nb_planes; int planeheight[4]; @@ -233,7 +232,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *inpicref) } av_frame_copy_props(frame, inpicref); - frame->pts = tc->frame_count++ * tc->ts_unit; + frame->pts = outlink->frame_count * tc->ts_unit; ret = ff_filter_frame(outlink, frame); } av_frame_free(&inpicref); -- cgit v1.1