OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
08fc1ad
)
vf_overlay: ensure the overlay frame does not get leaked.
author
Anton Khirnov
<anton@khirnov.net>
Wed, 25 Jul 2012 06:42:26 +0000
(08:42 +0200)
committer
Luca Barbato
<lu_zero@gentoo.org>
Wed, 25 Jul 2012 22:01:04 +0000
(
00:01
+0200)
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
libavfilter/vf_overlay.c
patch
|
blob
|
history
diff --git
a/libavfilter/vf_overlay.c
b/libavfilter/vf_overlay.c
index
5f34895
..
5a8da27
100644
(file)
--- a/
libavfilter/vf_overlay.c
+++ b/
libavfilter/vf_overlay.c
@@
-239,6
+239,7
@@
static int start_frame_overlay(AVFilterLink *inlink, AVFilterBufferRef *inpicref
OverlayContext *over = ctx->priv;
inlink->cur_buf = NULL;
+ avfilter_unref_bufferp(&over->overpicref);
over->overpicref = inpicref;
over->overpicref->pts = av_rescale_q(inpicref->pts, ctx->inputs[OVERLAY]->time_base,
ctx->outputs[0]->time_base);