summaryrefslogtreecommitdiff
path: root/libavfilter/vf_telecine.c
diff options
context:
space:
mode:
authorClément Bœsch <ubitux@gmail.com>2013-04-15 17:42:04 +0200
committerClément Bœsch <ubitux@gmail.com>2013-04-23 01:02:27 +0200
commitb8a5c76131944b4cc17c6db609288d0000d56a43 (patch)
tree2aeabcf34ac5d3ada79c9ae6168dba392ab393dd /libavfilter/vf_telecine.c
parentf4596e8bb6f74599b8258c87036c237c5da4b209 (diff)
downloadffmpeg-b8a5c76131944b4cc17c6db609288d0000d56a43.tar.gz
lavfi: add frame counter into AVFilterLink and use it in filters.
Diffstat (limited to 'libavfilter/vf_telecine.c')
-rw-r--r--libavfilter/vf_telecine.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavfilter/vf_telecine.c b/libavfilter/vf_telecine.c
index 76fb22c830..136df2289d 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);