summaryrefslogtreecommitdiff
path: root/libavutil/buffer.c
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2021-09-17 00:06:45 -0300
committerJames Almer <jamrial@gmail.com>2021-09-17 13:28:09 -0300
commitccfdef79b132bef49f4654266d5d3da8d1deb305 (patch)
treeeaba4efc2744aa3020c2b19054789e4e7d2e864c /libavutil/buffer.c
parentf58abfbedc35737ca5a732acbb0448e771a236f8 (diff)
avutil/buffer: constify some function parameters
Reviewed-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavutil/buffer.c')
-rw-r--r--libavutil/buffer.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavutil/buffer.c b/libavutil/buffer.c
index b13eeadffb..a32b7deb89 100644
--- a/libavutil/buffer.c
+++ b/libavutil/buffer.c
@@ -90,7 +90,7 @@ AVBufferRef *av_buffer_allocz(size_t size)
return ret;
}
-AVBufferRef *av_buffer_ref(AVBufferRef *buf)
+AVBufferRef *av_buffer_ref(const AVBufferRef *buf)
{
AVBufferRef *ret = av_mallocz(sizeof(*ret));
@@ -216,7 +216,7 @@ int av_buffer_realloc(AVBufferRef **pbuf, size_t size)
return 0;
}
-int av_buffer_replace(AVBufferRef **pdst, AVBufferRef *src)
+int av_buffer_replace(AVBufferRef **pdst, const AVBufferRef *src)
{
AVBufferRef *dst = *pdst;
AVBufferRef *tmp;
@@ -395,7 +395,7 @@ AVBufferRef *av_buffer_pool_get(AVBufferPool *pool)
return ret;
}
-void *av_buffer_pool_buffer_get_opaque(AVBufferRef *ref)
+void *av_buffer_pool_buffer_get_opaque(const AVBufferRef *ref)
{
BufferPoolEntry *buf = ref->buffer->opaque;
av_assert0(buf);