Commit acb6f3af authored by Michael Niedermayer's avatar Michael Niedermayer

avutil/fifo: delay addition of const from...

avutil/fifo: delay addition of const from 78d3453c until next major ABI bump

This unbreaks API, for example audacity has more build errors due to this
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 0fdc3cd8
...@@ -59,12 +59,12 @@ void av_fifo_reset(AVFifoBuffer *f) ...@@ -59,12 +59,12 @@ void av_fifo_reset(AVFifoBuffer *f)
f->wndx = f->rndx = 0; f->wndx = f->rndx = 0;
} }
int av_fifo_size(const AVFifoBuffer *f) int av_fifo_size(FF_CONST_AVUTIL53 AVFifoBuffer *f)
{ {
return (uint32_t)(f->wndx - f->rndx); return (uint32_t)(f->wndx - f->rndx);
} }
int av_fifo_space(const AVFifoBuffer *f) int av_fifo_space(FF_CONST_AVUTIL53 AVFifoBuffer *f)
{ {
return f->end - f->buffer - av_fifo_size(f); return f->end - f->buffer - av_fifo_size(f);
} }
......
...@@ -65,7 +65,7 @@ void av_fifo_reset(AVFifoBuffer *f); ...@@ -65,7 +65,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(const AVFifoBuffer *f); int av_fifo_size(FF_CONST_AVUTIL53 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
...@@ -73,7 +73,7 @@ int av_fifo_size(const AVFifoBuffer *f); ...@@ -73,7 +73,7 @@ int av_fifo_size(const AVFifoBuffer *f);
* @param f AVFifoBuffer to write into * @param f AVFifoBuffer to write into
* @return size * @return size
*/ */
int av_fifo_space(const AVFifoBuffer *f); int av_fifo_space(FF_CONST_AVUTIL53 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