aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/vf_fps.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-05-17 11:05:18 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-05-17 11:05:18 +0200
commitc7078f4907dcff6877cf38f48526788c10644f07 (patch)
tree2f736c10d8bd2b164e060adbf8335195daa0cb1a /libavfilter/vf_fps.c
parentd5e5e73c52d3e2e1d853b2d485223d3c7b01da4f (diff)
parent4c205f42c86ccefa093c59434669af34ad14a52b (diff)
downloadffmpeg-c7078f4907dcff6877cf38f48526788c10644f07.tar.gz
Merge commit '4c205f42c86ccefa093c59434669af34ad14a52b'
* commit '4c205f42c86ccefa093c59434669af34ad14a52b': vf_drawbox: make config_props work properly when called multiple times. vf_drawtext: do not reset the frame number in config_input. vf_fps: move initializing pts from config_props to init. Conflicts: libavfilter/vf_drawbox.c libavfilter/vf_drawtext.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter/vf_fps.c')
-rw-r--r--libavfilter/vf_fps.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavfilter/vf_fps.c b/libavfilter/vf_fps.c
index 6a67158c89..006c24577f 100644
--- a/libavfilter/vf_fps.c
+++ b/libavfilter/vf_fps.c
@@ -77,6 +77,8 @@ static av_cold int init(AVFilterContext *ctx)
if (!(s->fifo = av_fifo_alloc(2*sizeof(AVFrame*))))
return AVERROR(ENOMEM);
+ s->pts = AV_NOPTS_VALUE;
+
av_log(ctx, AV_LOG_VERBOSE, "fps=%d/%d\n", s->framerate.num, s->framerate.den);
return 0;
}
@@ -111,7 +113,6 @@ static int config_props(AVFilterLink* link)
link->frame_rate= s->framerate;
link->w = link->src->inputs[0]->w;
link->h = link->src->inputs[0]->h;
- s->pts = AV_NOPTS_VALUE;
return 0;
}