diff options
author | James Almer <jamrial@gmail.com> | 2021-09-17 06:06:45 +0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2021-09-17 19:28:09 +0300 |
commit | ccfdef79b132bef49f4654266d5d3da8d1deb305 (patch) | |
tree | eaba4efc2744aa3020c2b19054789e4e7d2e864c /libavutil/buffer.h | |
parent | f58abfbedc35737ca5a732acbb0448e771a236f8 (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.h')
-rw-r--r-- | libavutil/buffer.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavutil/buffer.h b/libavutil/buffer.h index 2c0ce1a108..e1ef5b7f07 100644 --- a/libavutil/buffer.h +++ b/libavutil/buffer.h @@ -145,7 +145,7 @@ void av_buffer_default_free(void *opaque, uint8_t *data); * @return a new AVBufferRef referring to the same AVBuffer as buf or NULL on * failure. */ -AVBufferRef *av_buffer_ref(AVBufferRef *buf); +AVBufferRef *av_buffer_ref(const AVBufferRef *buf); /** * Free a given reference and automatically free the buffer if there are no more @@ -212,7 +212,7 @@ int av_buffer_realloc(AVBufferRef **buf, size_t size); * @return 0 on success * AVERROR(ENOMEM) on memory allocation failure. */ -int av_buffer_replace(AVBufferRef **dst, AVBufferRef *src); +int av_buffer_replace(AVBufferRef **dst, const AVBufferRef *src); /** * @} @@ -313,7 +313,7 @@ AVBufferRef *av_buffer_pool_get(AVBufferPool *pool); * therefore you have to use this function to access the original opaque * parameter of an allocated buffer. */ -void *av_buffer_pool_buffer_get_opaque(AVBufferRef *ref); +void *av_buffer_pool_buffer_get_opaque(const AVBufferRef *ref); /** * @} |