Commit a9c69362 authored by Stefano Sabatini's avatar Stefano Sabatini

vsink_buffer: fix void pointer dereference in av_vsink_buffer_get_video_buffer_ref()

parent 6da590d0
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment