From c81d2fa96ddc9f6dab38d61a8803caca7e63bea0 Mon Sep 17 00:00:00 2001 From: Xidorn Quan Date: Fri, 29 Mar 2013 23:15:19 +0800 Subject: avutil/buffer: add get_opaque Signed-off-by: Michael Niedermayer --- libavutil/buffer.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'libavutil/buffer.h') diff --git a/libavutil/buffer.h b/libavutil/buffer.h index e33775aee3..ea49342e0a 100644 --- a/libavutil/buffer.h +++ b/libavutil/buffer.h @@ -122,7 +122,7 @@ AVBufferRef *av_buffer_allocz(int size); * @param data data array * @param size size of data in bytes * @param free a callback for freeing data - * @param opaque parameter to be passed to free + * @param opaque parameter to be got for processing or passed to free * @param flags a combination of AV_BUFFER_FLAG_* * * @return an AVBufferRef referring to data on success, NULL on failure. @@ -162,6 +162,11 @@ void av_buffer_unref(AVBufferRef **buf); */ int av_buffer_is_writable(const AVBufferRef *buf); +/** + * @return the opaque parameter set by av_buffer_create. + */ +void *av_buffer_get_opaque(const AVBufferRef *buf); + /** * Create a writable reference from a given buffer reference, avoiding data copy * if possible. -- cgit v1.2.3