[SCM] libav/experimental: Clarify responsibility for freeing a buffer when using vdpau.

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 16:53:36 UTC 2013


The following commit has been merged in the experimental branch:
commit 6d7d410f8b35194d01771162c24202e286fbcda4
Author: Carl Eugen Hoyos <cehoyos at rainbow.studorg.tuwien.ac.at>
Date:   Tue Oct 27 08:30:50 2009 +0000

    Clarify responsibility for freeing a buffer when using vdpau.
    
    Originally committed as revision 20376 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavcodec/vdpau.h b/libavcodec/vdpau.h
index 53dbd7c..32d0c67 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;
 };
 

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list