[FFmpeg-devel] [PATCH 2/3] vf_idet: fix a crash caused by unreferenced buffers
Matthieu Bouron
matthieu.bouron at gmail.com
Wed Oct 10 10:52:43 CEST 2012
From: Matthieu Bouron <matthieu.bouron at smartjog.com>
---
libavfilter/vf_idet.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavfilter/vf_idet.c b/libavfilter/vf_idet.c
index 9f68d2f..8a0c92e 100644
--- a/libavfilter/vf_idet.c
+++ b/libavfilter/vf_idet.c
@@ -174,7 +174,7 @@ static int start_frame(AVFilterLink *link, AVFilterBufferRef *picref)
avfilter_unref_buffer(idet->prev);
idet->prev = idet->cur;
idet->cur = idet->next;
- idet->next = picref;
+ idet->next = avfilter_ref_buffer(picref, ~0);
if (!idet->cur)
return 0;
--
1.7.10.4
More information about the ffmpeg-devel
mailing list