mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-12 10:29:39 +00:00
vf_overlay: don't access a buffer reference that's been given away.
This commit is contained in:
parent
7155763b78
commit
ad8b6326aa
@ -214,7 +214,6 @@ static void start_frame(AVFilterLink *inlink, AVFilterBufferRef *inpicref)
|
|||||||
AVFilterContext *ctx = inlink->dst;
|
AVFilterContext *ctx = inlink->dst;
|
||||||
OverlayContext *over = ctx->priv;
|
OverlayContext *over = ctx->priv;
|
||||||
|
|
||||||
inlink->dst->outputs[0]->out_buf = outpicref;
|
|
||||||
outpicref->pts = av_rescale_q(outpicref->pts, ctx->inputs[MAIN]->time_base,
|
outpicref->pts = av_rescale_q(outpicref->pts, ctx->inputs[MAIN]->time_base,
|
||||||
ctx->outputs[0]->time_base);
|
ctx->outputs[0]->time_base);
|
||||||
|
|
||||||
@ -324,7 +323,7 @@ static void draw_slice(AVFilterLink *inlink, int y, int h, int slice_dir)
|
|||||||
{
|
{
|
||||||
AVFilterContext *ctx = inlink->dst;
|
AVFilterContext *ctx = inlink->dst;
|
||||||
AVFilterLink *outlink = ctx->outputs[0];
|
AVFilterLink *outlink = ctx->outputs[0];
|
||||||
AVFilterBufferRef *outpicref = outlink->out_buf;
|
AVFilterBufferRef *outpicref = inlink->cur_buf;
|
||||||
OverlayContext *over = ctx->priv;
|
OverlayContext *over = ctx->priv;
|
||||||
|
|
||||||
if (over->overpicref &&
|
if (over->overpicref &&
|
||||||
|
Loading…
Reference in New Issue
Block a user