Commit 78d3453c authored by Lukasz Marek's avatar Lukasz Marek Committed by Michael Niedermayer

lavu/fifo: add const to arguments

Signed-off-by: 's avatarLukasz Marek <lukasz.m.luki2@gmail.com>
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 47550e62
...@@ -51,12 +51,12 @@ void av_fifo_reset(AVFifoBuffer *f) ...@@ -51,12 +51,12 @@ void av_fifo_reset(AVFifoBuffer *f)
f->wndx = f->rndx = 0; f->wndx = f->rndx = 0;
} }
int av_fifo_size(AVFifoBuffer *f) int av_fifo_size(const AVFifoBuffer *f)
{ {
return (uint32_t)(f->wndx - f->rndx); return (uint32_t)(f->wndx - f->rndx);
} }
int av_fifo_space(AVFifoBuffer *f) int av_fifo_space(const AVFifoBuffer *f)
{ {
return f->end - f->buffer - av_fifo_size(f); return f->end - f->buffer - av_fifo_size(f);
} }
......
...@@ -59,7 +59,7 @@ void av_fifo_reset(AVFifoBuffer *f); ...@@ -59,7 +59,7 @@ void av_fifo_reset(AVFifoBuffer *f);
* @param f AVFifoBuffer to read from * @param f AVFifoBuffer to read from
* @return size * @return size
*/ */
int av_fifo_size(AVFifoBuffer *f); int av_fifo_size(const AVFifoBuffer *f);
/** /**
* Return the amount of space in bytes in the AVFifoBuffer, that is the * Return the amount of space in bytes in the AVFifoBuffer, that is the
...@@ -67,7 +67,7 @@ int av_fifo_size(AVFifoBuffer *f); ...@@ -67,7 +67,7 @@ int av_fifo_size(AVFifoBuffer *f);
* @param f AVFifoBuffer to write into * @param f AVFifoBuffer to write into
* @return size * @return size
*/ */
int av_fifo_space(AVFifoBuffer *f); int av_fifo_space(const AVFifoBuffer *f);
/** /**
* Feed data from an AVFifoBuffer to a user-supplied callback. * Feed data from an AVFifoBuffer to a user-supplied callback.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment