[FFmpeg-cvslog] vsink_buffer: fix void pointer dereference in av_vsink_buffer_get_video_buffer_ref()
Stefano Sabatini
git at videolan.org
Wed Aug 31 16:29:39 CEST 2011
ffmpeg | branch: master | Stefano Sabatini <stefano.sabatini-lala at poste.it> | Mon Aug 29 18:46:06 2011 +0200| [a9c69362ea930b15cc42fa9f25c5201d370ff156] | committer: Stefano Sabatini
vsink_buffer: fix void pointer dereference in av_vsink_buffer_get_video_buffer_ref()
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a9c69362ea930b15cc42fa9f25c5201d370ff156
---
libavfilter/vsink_buffer.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libavfilter/vsink_buffer.c b/libavfilter/vsink_buffer.c
index e0f0334..52e362e 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);
More information about the ffmpeg-cvslog
mailing list