mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
overlay: clear cur_buf on main input link.
A reference is kept in the queue and freed after use.
This commit is contained in:
parent
1be55c82a5
commit
9c1d649ce5
@ -514,8 +514,11 @@ static void start_frame_main(AVFilterLink *inlink, AVFilterBufferRef *inpicref)
|
||||
flush_frames(ctx);
|
||||
inpicref->pts = av_rescale_q(inpicref->pts, ctx->inputs[MAIN]->time_base,
|
||||
ctx->outputs[0]->time_base);
|
||||
if (try_start_frame(ctx, inpicref) < 0)
|
||||
if (try_start_frame(ctx, inpicref) < 0) {
|
||||
ff_bufqueue_add(ctx, &over->queue_main, inpicref);
|
||||
av_assert1(inpicref == inlink->cur_buf);
|
||||
inlink->cur_buf = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
static void draw_slice_main(AVFilterLink *inlink, int y, int h, int slice_dir)
|
||||
|
Loading…
Reference in New Issue
Block a user