aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/buffer.c
diff options
context:
space:
mode:
authorXidorn Quan <quanxunzhen@gmail.com>2013-03-29 23:15:19 +0800
committerMichael Niedermayer <michaelni@gmx.at>2013-03-29 17:31:16 +0100
commitc81d2fa96ddc9f6dab38d61a8803caca7e63bea0 (patch)
tree4f72f013668e57a5438790854b3fab9ed6d056e6 /libavutil/buffer.c
parent774a2684973ef66d80b77e657d3fe28e3f37c496 (diff)
downloadffmpeg-c81d2fa96ddc9f6dab38d61a8803caca7e63bea0.tar.gz
avutil/buffer: add get_opaque
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil/buffer.c')
-rw-r--r--libavutil/buffer.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libavutil/buffer.c b/libavutil/buffer.c
index bccf089aca..20eaa733f2 100644
--- a/libavutil/buffer.c
+++ b/libavutil/buffer.c
@@ -125,6 +125,11 @@ int av_buffer_is_writable(const AVBufferRef *buf)
return avpriv_atomic_int_get(&buf->buffer->refcount) == 1;
}
+void *av_buffer_get_opaque(const AVBufferRef *buf)
+{
+ return buf->buffer->opaque;
+}
+
int av_buffer_make_writable(AVBufferRef **pbuf)
{
AVBufferRef *newbuf, *buf = *pbuf;