[FFmpeg-devel] [PATCH 2/3] vf_idet: fix a crash caused by unreferenced buffers
Michael Niedermayer
michaelni at gmx.at
Thu Oct 11 00:48:50 CEST 2012
On Wed, Oct 10, 2012 at 10:52:43AM +0200, Matthieu Bouron wrote:
> 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);
fixed differently
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
In a rich man's house there is no place to spit but his face.
-- Diogenes of Sinope
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20121011/7015bbb0/attachment.asc>
More information about the ffmpeg-devel
mailing list