aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2011-08-29 18:46:06 +0200
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2011-08-31 16:27:33 +0200
commita9c69362ea930b15cc42fa9f25c5201d370ff156 (patch)
tree487bd59a877399fc4e42602feda99c6708c29a0c
parent6da590d0a5024e0624aede379d29467f194cacb0 (diff)
downloadffmpeg-a9c69362ea930b15cc42fa9f25c5201d370ff156.tar.gz
vsink_buffer: fix void pointer dereference in av_vsink_buffer_get_video_buffer_ref()
-rw-r--r--libavfilter/vsink_buffer.c2
1 files changed, 1 insertions, 1 deletions
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);