From a9c69362ea930b15cc42fa9f25c5201d370ff156 Mon Sep 17 00:00:00 2001 From: Stefano Sabatini Date: Mon, 29 Aug 2011 18:46:06 +0200 Subject: [PATCH] vsink_buffer: fix void pointer dereference in av_vsink_buffer_get_video_buffer_ref() --- libavfilter/vsink_buffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/vsink_buffer.c b/libavfilter/vsink_buffer.c index e0f03344f5..52e362e672 100644 --- a/libavfilter/vsink_buffer.c +++ b/libavfilter/vsink_buffer.c @@ -114,7 +114,7 @@ int av_vsink_buffer_get_video_buffer_ref(AVFilterContext *ctx, return AVERROR(EINVAL); if (flags & AV_VSINK_BUF_FLAG_PEEK) - *picref = (AVFilterBufferRef *)av_fifo_peek2(buf->fifo, 0); + *picref = *((AVFilterBufferRef **)av_fifo_peek2(buf->fifo, 0)); else av_fifo_generic_read(buf->fifo, picref, sizeof(*picref), NULL);