Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClément Bœsch <ubitux@gmail.com>2013-04-15 19:42:04 +0400
committerClément Bœsch <ubitux@gmail.com>2013-04-23 03:02:27 +0400
commitb8a5c76131944b4cc17c6db609288d0000d56a43 (patch)
tree2aeabcf34ac5d3ada79c9ae6168dba392ab393dd /libavfilter/vf_separatefields.c
parentf4596e8bb6f74599b8258c87036c237c5da4b209 (diff)
lavfi: add frame counter into AVFilterLink and use it in filters.
Diffstat (limited to 'libavfilter/vf_separatefields.c')
-rw-r--r--libavfilter/vf_separatefields.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/libavfilter/vf_separatefields.c b/libavfilter/vf_separatefields.c
index 5849b62b77..c91c0c10e6 100644
--- a/libavfilter/vf_separatefields.c
+++ b/libavfilter/vf_separatefields.c
@@ -24,7 +24,6 @@
typedef struct {
int nb_planes;
- int64_t frame_count;
double ts_unit;
} SeparateFieldsContext;
@@ -76,12 +75,12 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *inpicref)
second->linesize[i] *= 2;
}
- inpicref->pts = sf->frame_count++ * sf->ts_unit;
- second->pts = sf->frame_count++ * sf->ts_unit;
-
+ inpicref->pts = outlink->frame_count * sf->ts_unit;
ret = ff_filter_frame(outlink, inpicref);
if (ret < 0)
return ret;
+
+ second->pts = outlink->frame_count * sf->ts_unit;
return ff_filter_frame(outlink, second);
}