aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/fifo.h
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2023-09-06 23:07:41 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2023-09-12 09:20:49 +0200
commit5094d1f429e58a67c542f1c5940a3de5184c35ca (patch)
tree3a182256c2a955e857485294a276938e6a33ae45 /libavutil/fifo.h
parentfa4bf5793a0aa85a031a729fc8de7412f85b0c10 (diff)
downloadffmpeg-5094d1f429e58a67c542f1c5940a3de5184c35ca.tar.gz
avutil/fifo: Constify AVFifo pointees in peek functions
They do not modify the AVFifo state. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavutil/fifo.h')
-rw-r--r--libavutil/fifo.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavutil/fifo.h b/libavutil/fifo.h
index 70f9376d97..ce3a2aed7c 100644
--- a/libavutil/fifo.h
+++ b/libavutil/fifo.h
@@ -200,7 +200,7 @@ int av_fifo_read_to_cb(AVFifo *f, AVFifoCB write_cb,
*
* @return a non-negative number on success, a negative error code on failure
*/
-int av_fifo_peek(AVFifo *f, void *buf, size_t nb_elems, size_t offset);
+int av_fifo_peek(const AVFifo *f, void *buf, size_t nb_elems, size_t offset);
/**
* Feed data from a FIFO into a user-provided callback.
@@ -217,7 +217,7 @@ int av_fifo_peek(AVFifo *f, void *buf, size_t nb_elems, size_t offset);
*
* @return a non-negative number on success, a negative error code on failure
*/
-int av_fifo_peek_to_cb(AVFifo *f, AVFifoCB write_cb, void *opaque,
+int av_fifo_peek_to_cb(const AVFifo *f, AVFifoCB write_cb, void *opaque,
size_t *nb_elems, size_t offset);
/**