summaryrefslogtreecommitdiff
path: root/libavcodec/vdpau.h
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at>2009-10-27 08:30:50 +0000
committerCarl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at>2009-10-27 08:30:50 +0000
commit6d7d410f8b35194d01771162c24202e286fbcda4 (patch)
treedb184c8b1fa3997f9a47fa8918911a14890f89c7 /libavcodec/vdpau.h
parentb70bc02279b7a382a764f6006b9bf9136dc83944 (diff)
downloadffmpeg-6d7d410f8b35194d01771162c24202e286fbcda4.tar.gz
Clarify responsibility for freeing a buffer when using vdpau.
Originally committed as revision 20376 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/vdpau.h')
-rw-r--r--libavcodec/vdpau.h4
1 files changed, 3 insertions, 1 deletions
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;
};