diff options
author | Anton Khirnov <anton@khirnov.net> | 2012-07-08 05:34:20 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2012-07-20 21:07:51 +0200 |
commit | ad8b6326aa00b87a87814d11707adf31ad2eaf28 (patch) | |
tree | 7eb4a325417d1a8b1e1c2d847008de8d299ea83b /libavfilter | |
parent | 7155763b78fcc1f158e02f4d44d251a1e597f0cc (diff) | |
download | ffmpeg-streaming-ad8b6326aa00b87a87814d11707adf31ad2eaf28.zip ffmpeg-streaming-ad8b6326aa00b87a87814d11707adf31ad2eaf28.tar.gz |
vf_overlay: don't access a buffer reference that's been given away.
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/vf_overlay.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavfilter/vf_overlay.c b/libavfilter/vf_overlay.c index 9852853..b9d64b9 100644 --- a/libavfilter/vf_overlay.c +++ b/libavfilter/vf_overlay.c @@ -214,7 +214,6 @@ static void start_frame(AVFilterLink *inlink, AVFilterBufferRef *inpicref) AVFilterContext *ctx = inlink->dst; OverlayContext *over = ctx->priv; - inlink->dst->outputs[0]->out_buf = outpicref; outpicref->pts = av_rescale_q(outpicref->pts, ctx->inputs[MAIN]->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; AVFilterLink *outlink = ctx->outputs[0]; - AVFilterBufferRef *outpicref = outlink->out_buf; + AVFilterBufferRef *outpicref = inlink->cur_buf; OverlayContext *over = ctx->priv; if (over->overpicref && |