diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2023-09-06 23:07:41 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2023-09-12 09:20:49 +0200 |
commit | 5094d1f429e58a67c542f1c5940a3de5184c35ca (patch) | |
tree | 3a182256c2a955e857485294a276938e6a33ae45 /libavutil/fifo.c | |
parent | fa4bf5793a0aa85a031a729fc8de7412f85b0c10 (diff) |
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.c')
-rw-r--r-- | libavutil/fifo.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavutil/fifo.c b/libavutil/fifo.c index 9b32f708fc..b0807abbf7 100644 --- a/libavutil/fifo.c +++ b/libavutil/fifo.c @@ -252,12 +252,12 @@ int av_fifo_read_to_cb(AVFifo *f, AVFifoCB write_cb, return ret; } -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) { return fifo_peek_common(f, buf, &nb_elems, offset, NULL, NULL); } -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) { return fifo_peek_common(f, NULL, nb_elems, offset, write_cb, opaque); |