mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-04-01 22:49:21 +00:00
avfilter/dualinput: use pts provided by framesync
This fixes stalled output pts when main stream ends. Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
a73b23e3df
commit
5486d7fa91
@ -32,7 +32,7 @@ static int process_frame(FFFrameSync *fs)
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
av_assert0(mainpic);
|
av_assert0(mainpic);
|
||||||
mainpic->pts = av_rescale_q(mainpic->pts, s->fs.time_base, ctx->outputs[0]->time_base);
|
mainpic->pts = av_rescale_q(s->fs.pts, s->fs.time_base, ctx->outputs[0]->time_base);
|
||||||
if (secondpic && !ctx->is_disabled)
|
if (secondpic && !ctx->is_disabled)
|
||||||
mainpic = s->process(ctx, mainpic, secondpic);
|
mainpic = s->process(ctx, mainpic, secondpic);
|
||||||
ret = ff_filter_frame(ctx->outputs[0], mainpic);
|
ret = ff_filter_frame(ctx->outputs[0], mainpic);
|
||||||
|
Loading…
Reference in New Issue
Block a user