Permalink
Browse files

vsink_buffer: fix void pointer dereference in av_vsink_buffer_get_vid…

…eo_buffer_ref()
  • Loading branch information...
1 parent 6da590d commit a9c69362ea930b15cc42fa9f25c5201d370ff156 Stefano Sabatini committed Aug 29, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 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);

0 comments on commit a9c6936

Please sign in to comment.