From 6d7d410f8b35194d01771162c24202e286fbcda4 Mon Sep 17 00:00:00 2001 From: Carl Eugen Hoyos Date: Tue, 27 Oct 2009 08:30:50 +0000 Subject: [PATCH] Clarify responsibility for freeing a buffer when using vdpau. Originally committed as revision 20376 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/vdpau.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libavcodec/vdpau.h b/libavcodec/vdpau.h index 53dbd7c02a..32d0c67f9f 100644 --- a/libavcodec/vdpau.h +++ b/libavcodec/vdpau.h @@ -75,9 +75,11 @@ struct vdpau_render_state { VdpPictureInfoVC1 vc1; } info; - /** Describe size/location of the compressed video data. */ + /** Describe size/location of the compressed video data. + Set to 0 when freeing bitstream_buffers. */ int bitstream_buffers_allocated; int bitstream_buffers_used; + /** The user is responsible for freeing this buffer using av_freep(). */ VdpBitstreamBuffer *bitstream_buffers; };