diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-03-30 19:13:26 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-03-30 20:28:00 +0100 |
commit | dc92464aee01a78c9963f86f24600ddf9c825258 (patch) | |
tree | 19a04525197d228cce97474c6fdb4acb43d278eb /libavutil/buffer.c | |
parent | 746016598d1885afd1fee976b6d315ed7eeefa68 (diff) | |
download | ffmpeg-dc92464aee01a78c9963f86f24600ddf9c825258.tar.gz |
avutil: add av_buffer_get_ref_count()
This function is quite usefull for debuging
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil/buffer.c')
-rw-r--r-- | libavutil/buffer.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libavutil/buffer.c b/libavutil/buffer.c index 20eaa733f2..a5fc8d7009 100644 --- a/libavutil/buffer.c +++ b/libavutil/buffer.c @@ -130,6 +130,11 @@ void *av_buffer_get_opaque(const AVBufferRef *buf) return buf->buffer->opaque; } +int av_buffer_get_ref_count(const AVBufferRef *buf) +{ + return buf->buffer->refcount; +} + int av_buffer_make_writable(AVBufferRef **pbuf) { AVBufferRef *newbuf, *buf = *pbuf; |