[FFmpeg-cvslog] avfilter/vf_stack: use time_base from framesync
Paul B Mahol
git at videolan.org
Sat Apr 27 01:02:54 EEST 2019
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Thu Apr 25 21:14:48 2019 +0200| [bf15dcc5c8d8172282da2abcc93fef61174fffdf] | committer: Paul B Mahol
avfilter/vf_stack: use time_base from framesync
Fixes non-monotonous timestamps.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=bf15dcc5c8d8172282da2abcc93fef61174fffdf
---
libavfilter/vf_stack.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/libavfilter/vf_stack.c b/libavfilter/vf_stack.c
index 8731674aa7..b836d96bf0 100644
--- a/libavfilter/vf_stack.c
+++ b/libavfilter/vf_stack.c
@@ -174,7 +174,6 @@ static int config_output(AVFilterLink *outlink)
{
AVFilterContext *ctx = outlink->src;
StackContext *s = ctx->priv;
- AVRational time_base = ctx->inputs[0]->time_base;
AVRational frame_rate = ctx->inputs[0]->frame_rate;
AVRational sar = ctx->inputs[0]->sample_aspect_ratio;
int height = ctx->inputs[0]->h;
@@ -281,7 +280,6 @@ static int config_output(AVFilterLink *outlink)
outlink->w = width;
outlink->h = height;
- outlink->time_base = time_base;
outlink->frame_rate = frame_rate;
outlink->sample_aspect_ratio = sar;
@@ -301,7 +299,10 @@ static int config_output(AVFilterLink *outlink)
in[i].after = s->shortest ? EXT_STOP : EXT_INFINITY;
}
- return ff_framesync_configure(&s->fs);
+ ret = ff_framesync_configure(&s->fs);
+ outlink->time_base = s->fs.time_base;
+
+ return ret;
}
static av_cold void uninit(AVFilterContext *ctx)
More information about the ffmpeg-cvslog
mailing list