diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-05-14 15:24:38 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-05-14 15:44:01 +0200 |
commit | acb6f3af4fce240957b79a1e58cb0eb60db74ba6 (patch) | |
tree | ddad9f5a2bcb20da05961dbee5b4f1dc243a43c2 | |
parent | 0fdc3cd86fddd690d1fd0ea9ddaa3b0ba3e0af68 (diff) | |
download | ffmpeg-acb6f3af4fce240957b79a1e58cb0eb60db74ba6.tar.gz |
avutil/fifo: delay addition of const from 78d3453c4a2efef9bc079e8f3458653beafcf990 until next major ABI bump
This unbreaks API, for example audacity has more build errors due to this
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavutil/fifo.c | 4 | ||||
-rw-r--r-- | libavutil/fifo.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/libavutil/fifo.c b/libavutil/fifo.c index e35237c090..09ffa4fd26 100644 --- a/libavutil/fifo.c +++ b/libavutil/fifo.c @@ -59,12 +59,12 @@ void av_fifo_reset(AVFifoBuffer *f) 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); } -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); } diff --git a/libavutil/fifo.h b/libavutil/fifo.h index 66fb48a2ed..f0b11094d0 100644 --- a/libavutil/fifo.h +++ b/libavutil/fifo.h @@ -65,7 +65,7 @@ void av_fifo_reset(AVFifoBuffer *f); * @param f AVFifoBuffer to read from * @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 @@ -73,7 +73,7 @@ int av_fifo_size(const AVFifoBuffer *f); * @param f AVFifoBuffer to write into * @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. |