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);