1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-21 10:55:51 +02:00

vsink_buffer: fix void pointer dereference in av_vsink_buffer_get_video_buffer_ref()

This commit is contained in:
Stefano Sabatini 2011-08-29 18:46:06 +02:00
parent 6da590d0a5
commit a9c69362ea

View File

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